# to the filesystem's block size into the middle of a different file does not
# corrupt the destination's file data by reflinking the last (eof) block.
#
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-tmp=/tmp/$$
-status=1 # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-_cleanup()
-{
- cd /
- rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+. ./common/preamble
+_begin_fstest auto quick dedupe clone
+
+# Import common functions.
. ./common/filter
. ./common/reflink
_supported_fs generic
_require_scratch_dedupe
-rm -f $seqres.full
-
_scratch_mkfs >>$seqres.full 2>&1
_scratch_mount