@@ -945,3 +945,10 @@ _try_wipe_scratch_xfs()
fi
rm -f $tmp.mkfs
}
+
+_require_xfs_copy()
+{
+ [ -n "$XFS_COPY_PROG" ] || _notrun "xfs_copy binary not yet installed"
+ [ "$USE_EXTERNAL" = yes ] && \
+ _notrun "Cannot xfs_copy with external devices"
+}
@@ -25,9 +25,7 @@ _supported_os Linux
_require_scratch
_require_test_program "feature"
-
-[ "$USE_EXTERNAL" = yes ] && _notrun "Cannot xfs_copy with external devices"
-[ -n "$XFS_COPY_PROG" ] || _notrun "xfs_copy binary not yet installed"
+_require_xfs_copy
rm -f $seqres.full
@@ -113,10 +113,7 @@ _supported_fs xfs
_supported_os Linux
_require_test
_require_attrs
-
-[ "$USE_EXTERNAL" = yes ] && _notrun "Cannot xfs_copy with external devices"
-[ -n "$XFS_COPY_PROG" ] || _notrun "xfs_copy binary not yet installed"
-
+_require_xfs_copy
_require_scratch
_require_loop
@@ -35,8 +35,7 @@ _cleanup()
_supported_fs xfs
_supported_os Linux
-# xfs_copy does not support realtime devices
-_require_no_realtime
+_require_xfs_copy
_require_scratch
_require_no_large_scratch_dev
_require_xfs_crc
@@ -34,8 +34,7 @@ rm -f $seqres.full
# real QA test starts here
_supported_fs xfs
_supported_os Linux
-# xfs_copy does not support realtime devices
-_require_no_realtime
+_require_xfs_copy
_require_test
_require_scratch
_require_no_large_scratch_dev
@@ -33,6 +33,7 @@ testdir=$TEST_DIR/test-$seq
_supported_os Linux
_supported_fs xfs
+_require_xfs_copy
_require_scratch_nocheck
_require_populate_commands