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 _begin_fstest dangerous_fuzzers dangerous_norepair realtime
13 _register_cleanup "_cleanup" BUS
15 # Import common functions.
20 # real QA test starts here
23 _require_xfs_scratch_rmapbt
24 _require_scratch_xfs_fuzz_fields
27 echo "Format and populate"
28 _scratch_populate_cached nofill > $seqres.full 2>&1
30 inode_ver=$(_scratch_xfs_get_metadata_field "core.version" 'sb 0' 'addr rrmapino')
32 echo "Fuzz rtrmapbt recs"
33 _scratch_xfs_fuzz_metadata '' 'none' 'sb 0' 'addr rrmapino' "addr u${inode_ver}.rtrmapbt.ptrs[1]" >> $seqres.full
34 echo "Done fuzzing rtrmapbt recs"