@@ -47,6 +47,7 @@ _cleanup()
_supported_os Linux
_supported_fs xfs
_require_scratch
+_require_xfs_scratch_rmapbt
_require_xfs_io_command "falloc"
rm -f $seqres.full
@@ -56,9 +57,6 @@ echo "Figure out block size"
_scratch_mkfs >/dev/null 2>&1
_scratch_mount >> $seqres.full
-is_rmap=$(xfs_info $SCRATCH_MNT | grep -c "rmapbt=1")
-test $is_rmap -gt 0 || _notrun "rmap not supported on scratch fs"
-
testdir=$SCRATCH_MNT/test-$seq
blksz="$(stat -f $SCRATCH_MNT -c '%S')"
@@ -48,6 +48,7 @@ _supported_os Linux
_supported_fs xfs
_require_cp_reflink
_require_scratch_reflink
+_require_xfs_scratch_rmapbt
_require_error_injection
_require_xfs_io_error_injection "rmap_finish_one"
@@ -60,9 +61,6 @@ echo "Format filesystem"
_scratch_mkfs >/dev/null 2>&1
_scratch_mount >> $seqres.full
-is_rmap=$(xfs_info $SCRATCH_MNT | grep -c "rmapbt=1")
-test $is_rmap -gt 0 || _notrun "rmap not supported on scratch fs"
-
echo "Create files"
_pwrite_byte 0x66 0 $sz $SCRATCH_MNT/file1 >> $seqres.full
_cp_reflink $SCRATCH_MNT/file1 $SCRATCH_MNT/file2
@@ -45,6 +45,7 @@ _cleanup()
_supported_os Linux
_supported_fs xfs
_require_scratch
+_require_xfs_scratch_rmapbt
_require_error_injection
_require_xfs_io_error_injection "rmap_finish_one"
@@ -57,9 +58,6 @@ echo "Format filesystem"
_scratch_mkfs >/dev/null 2>&1
_scratch_mount >> $seqres.full
-is_rmap=$(xfs_info $SCRATCH_MNT | grep -c "rmapbt=1")
-test $is_rmap -gt 0 || _notrun "rmap not supported on scratch fs"
-
echo "Create files"
touch $SCRATCH_MNT/file1
_pwrite_byte 0x67 0 $sz $SCRATCH_MNT/file0 >> $seqres.full
@@ -48,6 +48,7 @@ _supported_os Linux
_supported_fs xfs
_require_cp_reflink
_require_scratch_reflink
+_require_xfs_scratch_rmapbt
_require_xfs_io_error_injection "rmap_finish_one"
rm -f $seqres.full
@@ -59,9 +60,6 @@ echo "Format filesystem"
_scratch_mkfs >/dev/null 2>&1
_scratch_mount >> $seqres.full
-is_rmap=$(xfs_info $SCRATCH_MNT | grep -c "rmapbt=1")
-test $is_rmap -gt 0 || _notrun "rmap not supported on scratch fs"
-
echo "Create files"
_pwrite_byte 0x66 0 $sz $SCRATCH_MNT/file1 >> $seqres.full
$XFS_IO_PROG -f -c "truncate $sz" $SCRATCH_MNT/file3 >> $seqres.full
Don't open-code _notrun checks for the rmapbt, just use the helper. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> --- tests/xfs/310 | 4 +--- tests/xfs/314 | 4 +--- tests/xfs/317 | 4 +--- tests/xfs/322 | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html