2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Oracle, Inc. All Rights Reserved.
7 # Populate a XFS filesystem and fuzz every inline attr inode field.
8 # Use xfs_scrub to fix the corruption.
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
34 _require_scratch_xfs_fuzz_fields
36 echo "Format and populate"
37 _scratch_populate_cached nofill > $seqres.full 2>&1
39 echo "Find inline-format attr inode"
41 inum=$(stat -c '%i' $SCRATCH_MNT/ATTR.FMT_LOCAL)
44 echo "Fuzz inline-format attr inode"
45 _scratch_xfs_fuzz_metadata '' 'online' "inode ${inum}" >> $seqres.full
46 echo "Done fuzzing inline-format attr inode"