]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/cache: handle posix_fallocate returning EOPNOTSUPP (Linux/musl)
authorJakub Jirutka <jakub@jirutka.cz>
Fri, 27 May 2022 22:37:25 +0000 (00:37 +0200)
committerJakub Jirutka <jakub@jirutka.cz>
Fri, 27 May 2022 22:41:31 +0000 (00:41 +0200)
commit2c1bd5600ad1189fc4e45a1bf36d20e1ab9cfc02
tree21f8a743968026ef631d061f59c2f59e4fad07b5
parent39e187ae88d47527db74645f7af37a69a1196c4a
lib/cache: handle posix_fallocate returning EOPNOTSUPP (Linux/musl)

https://man7.org/linux/man-pages/man3/posix_fallocate.3.html#ERRORS:
> EOPNOTSUPP
> The filesystem containing the file referred to by fd does not support
> this operation.  This error code can be returned by C libraries that
> don't perform the emulation shown in NOTES, such as **musl libc**.

I've encountered this problem on Alpine Linux running inside an LXC
container on Ubuntu with data on ZFS.
lib/cache/cdb_lmdb.c