# Test that fallocating an unaligned range allocates all blocks
# touched by that range
#
-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
+. ./common/preamble
+_begin_fstest auto quick rw prealloc
+# Override the default cleanup function.
_cleanup()
{
cd /
rm -f "$TEST_DIR/falloctest-$seq"
}
-# get standard environment, filters and checks
-. ./common/rc
+# Import common functions.
. ./common/filter
# real QA test starts here