2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Oracle, Inc. All rights reserved.
7 # Populate a XFS filesystem and fuzz every rtrmapbt record field.
8 # Do not fix the filesystem, to test metadata verifiers.
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 7 15
25 # get standard environment, filters and checks
31 # real QA test starts here
35 _require_xfs_scratch_rmapbt
36 _require_scratch_xfs_fuzz_fields
39 echo "Format and populate"
40 _scratch_populate_cached nofill > $seqres.full 2>&1
42 inode_ver=$(_scratch_xfs_get_metadata_field "core.version" 'sb 0' 'addr rrmapino')
44 echo "Fuzz rtrmapbt recs"
45 _scratch_xfs_fuzz_metadata '' 'none' 'sb 0' 'addr rrmapino' "addr u${inode_ver}.rtrmapbt.ptrs[1]" >> $seqres.full
46 echo "Done fuzzing rtrmapbt recs"