# Test xfs_copy for all filesystem sector size / block size
# combinations possible on this platform.
#
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest copy auto quick
-here=`pwd`
-tmp=/tmp/$$
status=0 # success is the default!
-trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
# real QA test starts here
_supported_fs xfs
_require_test_program "feature"
_require_xfs_copy
-rm -f $seqres.full
-
SECTORSIZE=`blockdev --getss $SCRATCH_DEV`
PAGESIZE=`$here/src/feature -s`
IMGFILE=$TEST_DIR/${seq}_copy.img