# - Use copy to swap data at beginning and end
# - Use copy to swap data in the middle
# - Use copy to simultaneously overwrite and append to destination file
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-
-here=`pwd`
-tmp=/tmp/$$
-status=1 # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-_cleanup()
-{
- cd /
- rm -rf $tmp.*
-}
+. ./common/preamble
+_begin_fstest auto quick copy_range
# get standard environment
-. common/rc
. common/filter
# real QA test starts here
testdir=$TEST_DIR/test-$seq
rm -rf $testdir
mkdir $testdir
-rm -f $seqres.full
echo "Create the original file and then copy"
$XFS_IO_PROG -f -c 'pwrite -S 0x61 0 1000' $testdir/file >> $seqres.full 2>&1