# Check out various mount/remount/unmount scenarious on a read-only blockdev.
#
seqfull=$0
-seq=`basename $0`
-seqres=$RESULT_DIR/$seq
-echo "QA output created by $seq"
-
-here=`pwd`
-tmp=/tmp/$$
-status=1 # failure is the default!
+. ./common/preamble
+_begin_fstest shutdown mount auto quick
+# Override the default cleanup function.
_cleanup()
{
cd /
blockdev --setrw $SCRATCH_DEV
}
-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
# success, all done
echo "*** done"
-rm -f $seqres.full
status=0