# Fixed by commit 3af423b03435 ("xfs: evict CoW fork extents when performing
# finsert/fcollapse")
#
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick clone collapse insert zero
-here=`pwd`
-tmp=/tmp/$$
-status=1 # failure is the default!
-
-_cleanup()
-{
- cd /
- rm -f $tmp.*
-}
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
. ./common/filter
. ./common/reflink
_require_xfs_io_command "finsert"
_require_xfs_io_command "truncate"
-rm -f $seqres.full
-
_scratch_mkfs >/dev/null 2>&1
_scratch_mount