]> 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)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Aug 2023 09:26:01 +0000 (11:26 +0200)
commit03435a7c65538f02e249ff099c3c55ca4d791301
treefe538fd573cecdc7ecad6159fe8fc376d0d8564a
parent99358137968bca95962be0513bd8e7a656514991
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