]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: (utils) fix statx fallback
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 3 Aug 2023 05:13:28 +0000 (07:13 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 3 Aug 2023 05:21:10 +0000 (07:21 +0200)
commit91c2cbdf3a04f2f3f4c4bb0d2a6053874bfa11ea
treee48f90b2a81e7900f80de8779c5a9e2787511890
parenta6dd313bf2f5bc901ddc65262807075587ecb895
libmount: (utils) fix statx fallback

If the systemcall is not available ENOSYS is returned.

Under glibc the statx implementation also has its own fallback logic.
As AT_STATX_DONT_SYNC can't be implemented correctly in that fallback
logic the wrapper will return EINVAL in case the emulation is needed and
AT_STATX_DONT_SYNC is set.
So also use our own fallback in that case.

Fixes: #2409
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libmount/src/utils.c