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 #-----------------------------------------------------------------------
28 echo "QA output created by $seq"
32 status=1 # failure is the default!
34 # get standard environment, filters and checks
44 umount $SCRATCH_MNT 2>/dev/null
46 trap "_cleanup; exit \$status" 0 1 2 3 15
48 # real QA test starts here
50 _supported_os IRIX Linux
52 rm -f $seq.full $tmp.*
56 # link correct .out file
57 _link_out_file $seq.op
61 umount $SCRATCH_DEV >/dev/null 2>&1
63 cat >$tmp.seq.params <<EOF
65 version=1 logbsize=32k
66 version=2 logbsize=32k
67 version=2 logbsize=64k
68 version=2 logbsize=128k
69 version=2 logbsize=256k
72 if [ "$HOSTOS" = "IRIX" ]; then
78 # do the work for various log params which
79 # should not effect the data content of the log
83 if [ "$mkfs" = "#" ]; then
86 export MOUNT_OPTIONS="-o noalign,$mnt"
92 _cmp_op_output $seq.op $filtered
94 _print_transaction_inode $start_blk
95 _cmp_output $seq.trans_inode $filtered
97 _print_transaction_buf $start_blk
98 _cmp_output $seq.trans_buf $filtered
101 # got thru it all so we may have success