Skip to contentSkip to conversation

xfstests: generic/039: Standard insert range tests

PATCH In review Namjae Jeon 1 participant 1 message Jan 2, 2015 VFS

lore
Share & tools
lore
#0 lore raw

PATCH v7 5/11 xfstests: generic/039: Standard insert range tests

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

---
 common/punch          |  5 ++++
 common/rc             |  2 +-
 tests/generic/039     | 65 ++++++++++++++++++++++++++++++++++++++++++
 tests/generic/039.out | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++
 tests/generic/group   |  1 +
 5 files changed, 150 insertions(+), 1 deletion(-)
 create mode 100644 tests/generic/039
 create mode 100644 tests/generic/039.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 5ce3322..a32f3f2 100644
@@ -1520,7 +1520,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/039 new file +65 -0

65 lines not on this page · raw message

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

78 lines not on this page · raw message

tests/generic/group +1 -0
index 1e89848..d764c78 100644
@@ -41,6 +41,7 @@
 036 auto aio rw stress
 037 metadata auto quick
 038 auto stress
+039 auto quick prealloc
 053 acl repair auto quick
 062 attr udf auto quick
 068 other auto freeze dangerous stress
Signature · 6 lines
1.8.5.5

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