4 # Test out the v2 stripe logs with logprint
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
8 #-----------------------------------------------------------------------
11 owner=tes@melbourne.sgi.com
14 echo "QA output created by $seq"
18 status=1 # failure is the default!
20 # get standard environment, filters and checks
30 umount $SCRATCH_MNT 2>/dev/null
32 trap "_cleanup; exit \$status" 0 1 2 3 15
34 # real QA test starts here
36 _supported_os IRIX Linux
39 rm -f $seq.full $tmp.*
43 # link correct .out file
44 _link_out_file $seq.op
47 umount $SCRATCH_DEV >/dev/null 2>&1
49 cat >$tmp.seq.params <<EOF
50 # mkfs-opt mount-opt start-blk
51 version=2 logbsize=32k 2
52 version=2,su=4096 logbsize=32k 8
53 version=2,su=32768 logbsize=32k 64
55 # expect following line to fail
57 version=2,su=36864 logbsize=32k 72
59 # following is not a power of 2 BBs
61 version=2,su=5120 logbsize=32k 10
64 # Do the work for various log params which
65 # should not effect the data content of the log
66 # Try with and without sync'ing - sync'ing will mean that
67 # the log will be written out unfilled and thus the log
68 # stripe can have an effect.
70 for s in sync nosync ; do
72 | while read mkfs mnt start restofline
74 if [ "$mkfs" = "#" ]; then
77 if [ "$HOSTOS" = "IRIX" ]; then
78 # don't have umount rec at start on IRIX
79 # so we won't have to skip over it and get to
80 # another stripe boundary
83 echo "--- mkfs=$mkfs, mnt=$mnt, sync=$s ---"
84 export MOUNT_OPTIONS="-o $mnt"
85 if ! _mkfs_log "-l $mkfs"; then
88 if [ $s = "sync" ]; then
100 if [ $s = "sync" ]; then
101 # if sync then we have chance of DATA FORK EXTENTS items
102 # not hanging around very long due to inode syncing to disk
103 # (see comment in xfs_iflush_int())
104 # and this is to hard to reconcile in the op output
108 _cmp_op_output $seq.op $filtered
111 _print_transaction_inode $start
112 _cmp_output $seq.trans_inode $filtered
114 _print_transaction_buf $start
115 _cmp_output $seq.trans_buf $filtered