2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
7 # xfs_logprint test - test v2 logs of different LR sizes
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
18 # get standard environment, filters and checks
28 _scratch_unmount 2>/dev/null
30 trap "_cleanup; exit \$status" 0 1 2 3 15
32 # real QA test starts here
35 rm -f $seqres.full $tmp.*
40 _scratch_unmount >/dev/null 2>&1
42 cat >$tmp.seq.params <<EOF
44 version=1 logbsize=32k
45 version=2 logbsize=32k
46 version=2 logbsize=64k
47 version=2 logbsize=128k
48 version=2 logbsize=256k
53 # do the work for various log params which
54 # should not effect the data content of the log
58 if [ "$mkfs" = "#" ]; then
61 export MOUNT_OPTIONS="-o noalign,$mnt"
67 _cmp_op_output $seqfull.op $filtered
69 _print_transaction_inode $start_blk
70 _cmp_output $seqfull.trans_inode $filtered
72 _print_transaction_buf $start_blk
73 _cmp_output $seqfull.trans_buf $filtered
76 # got thru it all so we may have success