Skip to content

util/disk_cache: fall back to ftruncate if posix_fallocate isn't supported

Jan Beich requested to merge jbeich/mesa:zfs-posix_fallocate into main

CC @justonli @valpackett

After !22097 (merged) disk cache may always fail as ZFS doesn't support posix_fallocate. While GNU libc emulates posix_fallocate if not supported other libc (FreeBSD libc, musl, bionic) don't.

See also https://github.com/freebsd/freebsd-src/commit/96ed2690dfb3

Edited by Jan Beich

Merge request reports