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