Skip to contentSkip to conversation

xfstests: generic/027: Standard insert range tests

PATCH Superseded Namjae Jeon 1 participant 1 message May 8, 2014 VFS

v2 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 5/10 xfstests: generic/027: Standard insert range tests

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

---
 common/punch          |  5 ++++
 common/rc             |  2 +-
 tests/generic/027     | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/027.out | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/group   |  1 +
 5 files changed, 138 insertions(+), 1 deletion(-)
 create mode 100755 tests/generic/027
 create mode 100644 tests/generic/027.out
common/punch +5 -0
index f2d538c..4cc50d5 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 5c13db5..3af3a20 100644
@@ -1237,7 +1237,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/027 new file +65 -0

65 lines not on this page · raw message

tests/generic/027.out new file +66 -0

66 lines not on this page · raw message

tests/generic/group +1 -0
index 961f4e5..6ab5618 100644
@@ -29,6 +29,7 @@
 024 auto quick
 025 auto quick
 026 acl quick auto
+027 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