Add delayed attributes test
v2 cover Add delayed attributes test
This patch adds a quick test to excersize the delayed attribute error inject and log replay. Since v2, the test case has been expanded to test attributes of incrementing sizes up to 64k. It has also been updated to use the new mkfs.xfs -n delattr cli option added in the new xfsprogs set.
Allison Collins (1):
xfstests: Add Delayed Attribute test
common/rc | 3 ++ common/xfs | 7 +++ tests/xfs/512 | 101 +++++++++++++++++++++++++++++++++++++++++ tests/xfs/512.out | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/group | 1 + 5 files changed, 243 insertions(+) create mode 100755 tests/xfs/512 create mode 100644 tests/xfs/512.out
Signature · 1 line
2.7.4
PATCH v2 1/1 xfstests: Add Delayed Attribute test
This patch adds a test to exercise the delayed attribute error inject and log replay. Attributes are added in increaseing sizes up to 64k, and the error inject is used to replay them from the log
Signed-off-by Allison Collins <[email protected]>
--- common/rc | 3 ++ common/xfs | 7 +++ tests/xfs/512 | 101 +++++++++++++++++++++++++++++++++++++++++ tests/xfs/512.out | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ tests/xfs/group | 1 + 5 files changed, 243 insertions(+)
common/rc +3 -0
@@ -2116,6 +2116,9 @@ _require_xfs_io_command() rm -f $testcopy > /dev/null 2>&1 param_checked="$param" ;; + "delayed_attr") + testio=`$XFS_IO_PROG -x -c "delayed_attr" $TEST_DIR 2>&1` + ;; "falloc" ) testio=`$XFS_IO_PROG -F -f -c "falloc $param 0 1m" $testfile 2>&1` param_checked="$param"
common/xfs +7 -0
@@ -262,6 +262,13 @@ _require_projid32bit() || _notrun "mkfs.xfs doesn't have projid32bit feature" } +_require_delattr() +{ + echo "_require_delattr" + _scratch_mkfs_xfs_supported -n delattr >/dev/null 2>&1 \ + || _notrun "mkfs.xfs doesn't have delattr feature" +} + _require_projid16bit() { _scratch_mkfs_xfs_supported -i projid32bit=0 >/dev/null 2>&1 \
tests/xfs/512 new file +101 -0
101 lines not on this page · raw message
tests/xfs/512.out new file +131 -0
131 lines not on this page · raw message
tests/xfs/group +1 -0
@@ -509,3 +509,4 @@ 509 auto ioctl 510 auto ioctl quick 511 auto quick quota +512 auto quick attr
Signature · 1 line
2.7.4