Add read-only FS_IOC_FSGETXATTR support - #1657
Draft
a-shannon wants to merge 1 commit into
Draft
Conversation
Expose Fsxattr, FsxattrFlags, and ioctl_fsgetxattr using the kernel ABI definition. Preserve unknown returned flag bits and test layout, opcode, syscall parity, and error behavior.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Add a read-only
ioctl_fsgetxattrwrapper using the generated Linuxstruct fsxattrdefinition.This change:
Fsxattrresult and namedFsxattrFlags;FS_IOC_FSGETXATTR;FS_XFLAG_*bits through normal flag operations;CASEFOLD,ENCRYPTED, andVERITYnames toIFlags.Testing
Focused local validation recorded for both the
linux_rawanduse-libcconfigurations:
result parity, and unsupported-descriptor errno parity;
The broader local Clippy run remained blocked only by unchanged diagnostics in
timespec.rs. This does not claim repository-wide Clippy, MSRV, CI, orcross-architecture runtime validation.
Related work
This is distinct from #1624, which adds
FICLONERANGE. Both changes appendtests to
tests/fs/ioctl.rs, so whichever lands second will need a smalltest-file rebase.