4 # To test log replay by shutdown of file system
5 # This is the first simple initial test to ensure that
6 # the goingdown ioctl is working and recovery of
7 # create transactions is working.
9 #-----------------------------------------------------------------------
10 # Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
11 #-----------------------------------------------------------------------
14 owner=tes@melbourne.sgi.com
17 echo "QA output created by $seq"
21 status=1 # failure is the default!
22 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
24 # get standard environment, filters and checks
29 # real QA test starts here
31 _supported_os IRIX Linux
39 _scratch_mkfs_xfs >>$seq.full 2>&1 \
40 || _fail "mkfs scratch failed"
43 _scratch_mount >>$seq.full 2>&1 \
44 || _fail "mount failed: $MOUNT_OPTIONS"
47 touch $SCRATCH_MNT/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
50 src/godown -v -f $SCRATCH_MNT >> $seq.full
55 echo "logprint after going down..."
58 # curious if FS consistent at start
60 if /usr/sbin/xfs_check $SCRATCH_DEV; then
61 echo "*** checked ok ***"
65 echo "mount with replay"
66 _scratch_mount $mnt >>$seq.full 2>&1 \
67 || _fail "mount failed: $mnt $MOUNT_OPTIONS"
75 echo "logprint after mount and replay..."
78 if _check_scratch_fs; then
79 echo "filesystem is checked ok"
81 echo "filesystem is NOT ok"