2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Oracle, Inc. All Rights Reserved.
7 # Populate a XFS filesystem and fuzz every rmapbt key/pointer field.
8 # Use xfs_repair to fix the corruption.
9 # Use xfs_repair to repair the problems.
12 seqres=$RESULT_DIR/$seq
13 echo "QA output created by $seq"
17 status=1 # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 7 15
26 # get standard environment, filters and checks
32 # real QA test starts here
35 _require_xfs_scratch_rmapbt
36 _require_scratch_xfs_fuzz_fields
38 echo "Format and populate"
39 _scratch_populate_cached nofill > $seqres.full 2>&1
41 echo "Fuzz rmapbt keyptr"
42 _scratch_xfs_fuzz_metadata '' 'offline' 'agf 0' 'addr rmaproot' >> $seqres.full
43 echo "Done fuzzing rmapbt keyptr"