Skip to content

libmount: (utils) fix statx fallback #2414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

t-8ch
Copy link
Member

@t-8ch t-8ch commented Aug 3, 2023

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

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: util-linux#2409
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
@karelzak karelzak merged commit 63c15ba into util-linux:master Aug 3, 2023
@thesamesam
Copy link
Contributor

Could this one be backported for 2.39?

@karelzak
Copy link
Collaborator

Yes, I'm working on a new pull request with all patches for the stable branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mount from 2.39.1 fails to process fstab on older kernels
3 participants