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 #-----------------------------------------------------------------------
27 seqres=$RESULT_DIR/$seq
28 echo "QA output created by $seq"
32 status=1 # failure is the default!
34 # get standard environment, filters and checks
44 _scratch_unmount 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 $seqres.full $tmp.*
56 # link correct .out file
57 _link_out_file_named $seqfull.op $(_get_os_name)
60 _scratch_unmount >/dev/null 2>&1
62 cat >$tmp.seq.params <<EOF
64 version=1 logbsize=32k
65 version=2 logbsize=32k
66 version=2 logbsize=64k
67 version=2 logbsize=128k
68 version=2 logbsize=256k
71 if [ "$HOSTOS" = "IRIX" ]; then
77 # do the work for various log params which
78 # should not effect the data content of the log
82 if [ "$mkfs" = "#" ]; then
85 export MOUNT_OPTIONS="-o noalign,$mnt"
91 _cmp_op_output $seqfull.op $filtered
93 _print_transaction_inode $start_blk
94 _cmp_output $seqfull.trans_inode $filtered
96 _print_transaction_buf $start_blk
97 _cmp_output $seqfull.trans_buf $filtered
100 # got thru it all so we may have success