Add XFS ficlone detection and basic filesystem test#542
Open
andy5995 wants to merge 3 commits into
Open
Conversation
Member
andy5995
commented
May 5, 2026
- Detect XFS via XFS_SUPER_MAGIC in is_ficlone_fs()
- Add test image, test script, config, and CI cache/download steps
- Update man page NOTES section to include XFS
- Detect XFS via XFS_SUPER_MAGIC in is_ficlone_fs() - Add test image, test script, config, and CI cache/download steps - Update man page NOTES section to include XFS Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- is_ficlone_fs: use lstat+parent-dir statfs for symlinks so the symlink inode's filesystem is checked rather than the target's; also use arg (trailing-slash stripped) instead of argv[file_arg] - is_ficlone_fs: cache result per file before the waste loop to avoid redundant statfs calls on bulk removals - do_ficlone: copy extended attributes after a successful FICLONE - ficlone cross-device failure: try next waste dir on any error instead of calling exit() for non-EXDEV errno values - test_btrfs_clone: add dangling-symlink and xattr preservation tests - ci: install attr package for setfattr/getfattr in xattr tests Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> [skip ci]
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.