Skip to contentSkip to conversation

xfstests: generic/038: Standard insert range tests

PATCH Superseded Namjae Jeon 1 participant 1 message Nov 24, 2014 VFS

v6 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH v6 5/10 xfstests: generic/038: Standard insert range tests

This testcase(038) tries to test various corner cases for finsert range functionality over different type of extents.

---
 common/punch          |  5 ++++
 common/rc             |  2 +-
 tests/generic/038     | 65 ++++++++++++++++++++++++++++++++++++++++++
 tests/generic/038.out | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/group   |  1 +
 5 files changed, 150 insertions(+), 1 deletion(-)
 create mode 100644 tests/generic/038
 create mode 100644 tests/generic/038.out
common/punch +5 -0
index 237b4d8..a75f4cf 100644
@@ -527,6 +527,11 @@ _test_generic_punch()
 		return
 	fi
 
+	# If zero_cmd is finsert, don't check unaligned offsets
+	if [ "$zero_cmd" == "finsert" ]; then
+		return
+	fi
+
 	echo "	16. data -> cache cold ->hole"
 	if [ "$remove_testfile" ]; then
 		rm -f $testfile
common/rc +1 -1
index d5e3aff..ca4177f 100644
@@ -1486,7 +1486,7 @@ _require_xfs_io_command()
 	"falloc" )
 		testio=`$XFS_IO_PROG -F -f -c "falloc 0 1m" $testfile 2>&1`
 		;;
-	"fpunch" | "fcollapse" | "zero" | "fzero" )
+	"fpunch" | "fcollapse" | "zero" | "fzero" | "finsert" )
 		testio=`$XFS_IO_PROG -F -f -c "pwrite 0 20k" -c "fsync" \
 			-c "$command 4k 8k" $testfile 2>&1`
 		;;
tests/generic/038 new file +65 -0

65 lines not on this page · raw message

tests/generic/038.out new file +78 -0

78 lines not on this page · raw message

tests/generic/group +1 -0
index 9f355fc..7d6f227 100644
@@ -40,6 +40,7 @@
 035 auto quick
 036 auto aio rw stress
 037 metadata auto quick
+038 auto quick prealloc
 053 acl repair auto quick
 062 attr udf auto quick
 068 other auto freeze dangerous stress
Signature · 6 lines
1.7.11-rc0

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs