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 #-----------------------------------------------------------------------
29 seqres=$RESULT_DIR/$seq
30 echo "QA output created by $seq"
34 status=1 # failure is the default!
35 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
37 # get standard environment, filters and checks
42 # real QA test starts here
44 _supported_os IRIX Linux
50 _require_scratch_shutdown
54 _scratch_mkfs_xfs >>$seqres.full 2>&1 \
55 || _fail "mkfs scratch failed"
58 _scratch_mount >>$seqres.full 2>&1 \
59 || _fail "mount failed: $MOUNT_OPTIONS"
62 touch $SCRATCH_MNT/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
65 src/godown -v -f $SCRATCH_MNT >> $seqres.full
70 echo "logprint after going down..."
73 # curious if FS consistent at start
75 if _xfs_check $SCRATCH_DEV; then
76 echo "*** checked ok ***"
80 echo "mount with replay"
81 _scratch_mount $mnt >>$seqres.full 2>&1 \
82 || _fail "mount failed: $mnt $MOUNT_OPTIONS"
90 echo "logprint after mount and replay..."