2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
7 # To test log replay by shutdown of file system
8 # This is the first simple initial test to ensure that
9 # the goingdown ioctl is working and recovery of
10 # create transactions is working.
13 seqres=$RESULT_DIR/$seq
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21 # get standard environment, filters and checks
26 # real QA test starts here
33 _require_scratch_shutdown
37 _scratch_mkfs >>$seqres.full 2>&1 \
38 || _fail "mkfs scratch failed"
39 _require_metadata_journaling $SCRATCH_DEV
45 touch $SCRATCH_MNT/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
48 _scratch_shutdown -v -f >> $seqres.full
53 echo "logprint after going down..."
56 # curious if FS consistent at start
58 if _check_scratch_fs; then
59 echo "*** checked ok ***"
63 echo "mount with replay"
64 _try_scratch_mount $mnt >>$seqres.full 2>&1 \
65 || _fail "mount failed: $mnt $MOUNT_OPTIONS"
68 ls $SCRATCH_MNT | _filter_lostfound
73 echo "logprint after mount and replay..."