Skip to content

Improved FS_IOC_FSSETXATTR tests

Amir Goldstein fstests linux-unionfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3fstests: print out xfs_io parameter when command failscommon/rc+10 -100 replies
2/3fstests: check for filesystem FS_IOC_FSSETXATTR supportcommon/rc doc/requirement-checking.txt tests/generic/553 +2 more+14 -50 replies
3/3generic: check CAP_LINUX_IMMUTABLE capability with FS_IOC_FSSETXATTRtests/generic/555 tests/generic/555.out tests/generic/group+84 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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