xfs/029: filter out "extended-header: cycle: 1" from output
[xfstests-dev.git] / tests / xfs / 372
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Oracle, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 372
6 #
7 # Populate a XFS filesystem and fuzz every refcountbt field.
8 # Use xfs_repair to fix the corruption.
9 #
10 seq=`basename $0`
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
13
14 here=`pwd`
15 tmp=/tmp/$$
16 status=1        # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 7 15
18
19 _cleanup()
20 {
21         cd /
22         rm -rf $tmp.*
23 }
24
25 # get standard environment, filters and checks
26 . ./common/rc
27 . ./common/filter
28 . ./common/populate
29 . ./common/fuzzy
30 . ./common/reflink
31
32 # real QA test starts here
33 _supported_os Linux
34 _supported_fs xfs
35 _require_scratch_reflink
36 _require_scratch_xfs_fuzz_fields
37
38 echo "Format and populate"
39 _scratch_populate_cached nofill > $seqres.full 2>&1
40
41 echo "Fuzz refcountbt"
42 _scratch_xfs_fuzz_metadata '' 'offline'  'agf 0' 'addr refcntroot' >> $seqres.full
43 echo "Done fuzzing refcountbt"
44
45 # success, all done
46 status=0
47 exit