# more space left to allocate in the filesystem and then snapshot the file's
# subvolume, after a clean shutdown the data was not lost.
#
-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
+. ./common/preamble
+_begin_fstest auto quick snapshot
-_cleanup()
-{
- cd /
- rm -f $tmp.*
-}
-
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
. ./common/filter
# real QA test starts here
_require_scratch
_require_xfs_io_command "falloc" "-k"
-rm -f $seqres.full
-
# Use a fixed size filesystem so that we can precisely fill the data block group
# mkfs.btrfs creates and allocate all unused space for a new data block group.
# It's important to not use the mixed block groups feature as well because we