4 # test remount ro - pv 795642
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
14 echo "QA output created by $seq"
19 trap "_cleanup; rm -f $tmp.*; exit \$status" 0 1 2 3 15
24 umount $SCRATCH_MNT 2>/dev/null
27 # get standard environment, filters and checks
31 # real QA test starts here
38 [ "$USE_BIG_LOOPFS" = yes ] && checkopts=-t
43 umount $SCRATCH_DEV >/dev/null 2>&1
44 echo "*** MKFS ***" >>$seq.full
46 _scratch_mkfs_xfs >>$seq.full 2>&1 \
47 || _fail "mkfs failed"
48 _scratch_mount >>$seq.full 2>&1 \
49 || _fail "mount failed"
56 $FSSTRESS_PROG -d $SCRATCH_MNT -n 1000 $FSSTRESS_AVOID >>$seq.full
58 _scratch_mount -o remount,ro \
59 || _fail "remount ro failed"
62 echo "*** xfs_logprint ***" >>$seq.full
64 _scratch_xfs_logprint -tb | tee -a $seq.full \
65 | head | grep -q "<CLEAN>" || _fail "DIRTY LOG"
68 echo "*** XFS_CHECK ***" >>$seq.full
70 xfs_check $checkopts $SCRATCH_DEV >>$seq.full 2>&1 \
71 || _fail "xfs_check $checkopts failed"
72 _scratch_mount -o remount,rw \
73 || _fail "remount rw failed"