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.
12 # This program is free software; you can redistribute it and/or
13 # modify it under the terms of the GNU General Public License as
14 # published by the Free Software Foundation.
16 # This program is distributed in the hope that it would be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write the Free Software Foundation,
23 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 #-----------------------------------------------------------------------
28 owner=tes@melbourne.sgi.com
31 echo "QA output created by $seq"
35 status=1 # failure is the default!
36 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
38 # get standard environment, filters and checks
43 # real QA test starts here
45 _supported_os IRIX Linux
53 _scratch_mkfs_xfs >>$seq.full 2>&1 \
54 || _fail "mkfs scratch failed"
57 _scratch_mount >>$seq.full 2>&1 \
58 || _fail "mount failed: $MOUNT_OPTIONS"
61 touch $SCRATCH_MNT/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
64 src/godown -v -f $SCRATCH_MNT >> $seq.full
69 echo "logprint after going down..."
72 # curious if FS consistent at start
74 if /usr/sbin/xfs_check $SCRATCH_DEV; then
75 echo "*** checked ok ***"
79 echo "mount with replay"
80 _scratch_mount $mnt >>$seq.full 2>&1 \
81 || _fail "mount failed: $mnt $MOUNT_OPTIONS"
89 echo "logprint after mount and replay..."
92 if _check_scratch_fs; then
93 echo "filesystem is checked ok"
95 echo "filesystem is NOT ok"