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_scrub to fix the corruption.
9 # Use xfs_scrub to repair the problems.
12 _begin_fstest dangerous_fuzzers dangerous_scrub dangerous_online_repair
14 _register_cleanup "_cleanup" BUS
16 # Import common functions.
21 # real QA test starts here
23 _require_xfs_scratch_rmapbt
24 _require_scratch_xfs_fuzz_fields
26 echo "Format and populate"
27 _scratch_populate_cached nofill > $seqres.full 2>&1
29 echo "Fuzz rmapbt keyptr"
30 _scratch_xfs_fuzz_metadata '' 'online' 'agf 0' 'addr rmaproot' >> $seqres.full
31 echo "Done fuzzing rmapbt keyptr"