This repository was archived by the owner on Sep 8, 2026. It is now read-only.
[pull] master from libfuse:master - #64
Merged
Merged
Conversation
The kernel mount API syscalls (fsopen/fsconfig/fsmount/move_mount) landed in Linux 5.2, but libc wrapper functions can lag behind - e.g. glibc added them only in 2.36. RHEL9-family distros with an older glibc but a new-enough kernel (Rocky, RHEL, AlmaLinux, CentOS Stream, Oracle Linux 9 all ship glibc 2.34) fail the existing meson capability check even though the kernel itself supports the syscalls. Detect this with two independent meson checks: one confirms the kernel headers declare the API, the other confirms libc provides the wrapper functions. When the headers are present but libc isn't, mount_fsmount.c supplies its own syscall()-based wrappers, and it defines any mount API constants a partial uapi header omits so the build never depends on the system header being complete. Neither check names a distro or a libc version, so the fallback engages for any libc/distro with the same gap, and it stays correct under cross-compilation since it is a real compile+link probe rather than a host-OS string match. Changes by Bernd: reworked the original Rocky-9-specific detection to be portable - replaced the /etc/os-release distro-name match with the two independent header and libc probes above. Signed-off-by: kchen <kchen@ddn.com> Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )