xfs/007: fix regressions on V4 filesystems
[xfstests-dev.git] / tests / xfs / 366
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Oracle, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 366
6 #
7 # Populate a XFS filesystem and fuzz every finobt field.
8 # Use xfs_repair to fix the corruption.
9 #
10 . ./common/preamble
11 _begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair
12
13 _register_cleanup "_cleanup" BUS
14
15 # Import common functions.
16 . ./common/filter
17 . ./common/populate
18 . ./common/fuzzy
19
20 # real QA test starts here
21 _supported_fs xfs
22 _require_scratch_xfs_fuzz_fields
23 _require_xfs_finobt
24
25 echo "Format and populate"
26 _scratch_populate_cached nofill > $seqres.full 2>&1
27
28 echo "Fuzz finobt"
29 _scratch_xfs_fuzz_metadata '' 'offline'  'agi 0' 'addr free_root' >> $seqres.full
30 echo "Done fuzzing finobt"
31
32 # success, all done
33 status=0
34 exit