4 # xfs_logprint test - test v2 logs of different LR sizes
6 #-----------------------------------------------------------------------
7 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as
11 # published by the Free Software Foundation.
13 # This program is distributed in the hope that it would be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write the Free Software Foundation,
20 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #-----------------------------------------------------------------------
26 echo "QA output created by $seq"
30 status=1 # failure is the default!
32 # get standard environment, filters and checks
42 umount $SCRATCH_MNT 2>/dev/null
44 trap "_cleanup; exit \$status" 0 1 2 3 15
46 # real QA test starts here
48 _supported_os IRIX Linux
50 rm -f $seq.full $tmp.*
54 # link correct .out file
55 _link_out_file $seq.op
59 umount $SCRATCH_DEV >/dev/null 2>&1
61 cat >$tmp.seq.params <<EOF
63 version=1 logbsize=32k
64 version=2 logbsize=32k
65 version=2 logbsize=64k
66 version=2 logbsize=128k
67 version=2 logbsize=256k
70 if [ "$HOSTOS" = "IRIX" ]; then
76 # do the work for various log params which
77 # should not effect the data content of the log
81 if [ "$mkfs" = "#" ]; then
84 export MOUNT_OPTIONS="-o noalign,$mnt"
90 _cmp_op_output $seq.op $filtered
92 _print_transaction_inode $start_blk
93 _cmp_output $seq.trans_inode $filtered
95 _print_transaction_buf $start_blk
96 _cmp_output $seq.trans_buf $filtered
99 # got thru it all so we may have success