# userspace doesn't get an error when reading the file back so we have to grok
# dmesg to see if there was a csum error.
#
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick balance
-here=`pwd`
-tmp=/tmp/$$
-
-status=1 # failure is the default!
-
-_cleanup()
-{
- 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
# real QA test starts here
_require_scratch
_require_xfs_io_command "falloc"
-rm -f $seqres.full
-
_scratch_mkfs > /dev/null 2>&1
_scratch_mount