2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Oracle, Inc. All rights reserved.
7 # Populate a XFS filesystem and fuzz every btree-format directory inode field.
8 # Do not fix the filesystem, to test metadata verifiers.
11 _begin_fstest dangerous_fuzzers dangerous_norepair
13 _register_cleanup "_cleanup" BUS
15 # Import common functions.
20 # real QA test starts here
22 _require_scratch_xfs_fuzz_fields
25 echo "Format and populate"
26 _scratch_populate_cached nofill > $seqres.full 2>&1
28 echo "Find btree-format dir inode"
30 inum=$(stat -c '%i' $SCRATCH_MNT/S_IFDIR.FMT_BTREE)
34 _scratch_xfs_fuzz_metadata '' 'none' "inode ${inum}" >> $seqres.full
35 echo "Done fuzzing inode"