# Test restrictions on operations that can be done on an active swap file
# specific to Btrfs.
#
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
+. ./common/preamble
+_begin_fstest auto quick swap
-here=`pwd`
-tmp=/tmp/$$
-status=1 # failure is the default!
-trap "_cleanup; exit \$status" 0 1 2 3 15
-
-_cleanup()
-{
- cd /
- rm -f $tmp.*
-}
-
-. ./common/rc
. ./common/filter
-rm -f $seqres.full
-
_supported_fs btrfs
_require_scratch_swapfile