2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (c) 2022 Oracle. All Rights Reserved.
7 # Populate a XFS filesystem and fuzz every finobt field.
8 # Try online repair and, if necessary, offline repair,
9 # to test the most likely usage pattern.
12 _begin_fstest dangerous_fuzzers dangerous_bothrepair
14 _register_cleanup "_cleanup" BUS
16 # Import common functions.
21 # real QA test starts here
23 _require_scratch_xfs_fuzz_fields
27 echo "Format and populate"
28 _scratch_populate_cached nofill > $seqres.full 2>&1
30 path="$(_scratch_xfs_find_agbtree_height 'fino' 2)" || \
31 _fail "could not find two-level finobt"
34 _scratch_xfs_fuzz_metadata '' 'both' "$path" 'addr free_root' 'addr ptrs[1]' >> $seqres.full
35 echo "Done fuzzing finobt"