]> git.ipfire.org Git - thirdparty/ccache.git/commit
fix: Fall back to emulation for unsupported posix_fallocate (#1222)
authorOleg Sidorkin <osidorkin@gmail.com>
Mon, 14 Nov 2022 18:53:50 +0000 (21:53 +0300)
committerGitHub <noreply@github.com>
Mon, 14 Nov 2022 18:53:50 +0000 (19:53 +0100)
commitec77044ea62bab253e62ee5aaf2646a2ee551004
treefe368a92b7c011cd563171d71caa0d9ce26a2b8b
parent876509ae8b95f76adebdfa1f2380d75a49f9871d
fix: Fall back to emulation for unsupported posix_fallocate (#1222)

posix_fallocate can return EINVAL if filesystem doesn't support it. Fall back to emulation in this case.

E.g. ZFS does so on FreeBSD (haven't tested with ZFS on linux).

This fixes Utill::fallocate unit tests on ZFS.
src/Util.cpp