Improved FS_IOC_FSSETXATTR tests
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | fstests: print out xfs_io parameter when command failscommon/ | +10 | 0 replies | |
| 2/3 | fstests: check for filesystem FS_IOC_FSSETXATTR supportcommon/ doc/ tests/ +2 more | +14 | 0 replies | |
| 3/3 | generic: check CAP_LINUX_IMMUTABLE capability with FS_IOC_FSSETXATTRtests/ tests/ tests/ | +84 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] Improved FS_IOC_FSSETXATTR tests
Eryu,
Overlayfs gained support for FS_IOC_FSSETXATTR ioctl in v5.2-rc4 with buggy capability check. The fix is trivial so it should land upstream soon.
This series adds a generic test to cover the bug in overlayfs v5.2-rc4. It also adds a proper _require directive to test filesystem support for FS_IOC_FSSETXATTR and let the tests that use this ioctl require filesystem support for it.
The only existing generic test that needed this requirement is the recently added generic/553 copy_range immutable file test. When run on overlayfs over xfs/ext4/btrfs, generic/553 would fail instead of _notrun with kernel v5.2-rc3.
But the requirement fix is not only for overlayfs, other filesystems that support FS_IOC_SETFLAGS but not FS_IOC_FSSETXATTR (e.g. ext2), need those fixes to _notrun generic/553.
Thanks,
Amir.
Amir Goldstein (3):
fstests: print out xfs_io parameter when command fails
fstests: check for filesystem FS_IOC_FSSETXATTR support
generic: check CAP_LINUX_IMMUTABLE capability with FS_IOC_FSSETXATTR
common/rc | 30 ++++++++++----- doc/requirement-checking.txt | 2 +- tests/generic/553 | 3 +- tests/generic/555 | 74 ++++++++++++++++++++++++++++++++++++ tests/generic/555.out | 9 +++++ tests/generic/group | 1 + tests/xfs/260 | 2 +- tests/xfs/431 | 2 +- 8 files changed, 108 insertions(+), 15 deletions(-) create mode 100755 tests/generic/555 create mode 100644 tests/generic/555.out
Signature · 1 line
2.17.1