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
36 rm -f $seqres.full $tmp.*
41 _scratch_unmount >/dev/null 2>&1
43 cat >$tmp.seq.params <<EOF
45 version=1 logbsize=32k
46 version=2 logbsize=32k
47 version=2 logbsize=64k
48 version=2 logbsize=128k
49 version=2 logbsize=256k
54 # do the work for various log params which
55 # should not effect the data content of the log
59 if [ "$mkfs" = "#" ]; then
62 export MOUNT_OPTIONS="-o noalign,$mnt"
68 _cmp_op_output $seqfull.op $filtered
70 _print_transaction_inode $start_blk
71 _cmp_output $seqfull.trans_inode $filtered
73 _print_transaction_buf $start_blk
74 _cmp_output $seqfull.trans_buf $filtered
77 # got thru it all so we may have success