Skip to contentSkip to conversation

Add delayed attributes test

PATCH New Allison Collins 1 participant 2 messages Sep 5, 2019

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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

---
 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
index feb001b..e2d2eb8 100644
@@ -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
index 1bce3c1..b8a4734 100644
@@ -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
index a7ad300..a9dab7c 100644
@@ -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