2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2017 Oracle, Inc. All Rights Reserved.
7 # Populate a XFS filesystem and fuzz every project dquot field.
8 # Use xfs_repair to fix the corruption.
11 _begin_fstest dangerous_fuzzers dangerous_scrub dangerous_repair
13 _register_cleanup "_cleanup" BUS
15 # Import common functions.
21 # real QA test starts here
23 _require_scratch_xfs_fuzz_fields
26 echo "Format and populate"
27 _scratch_populate_cached nofill > $seqres.full 2>&1
28 echo "${MOUNT_OPTIONS}" | grep -q 'prjquota' || _notrun "project quota disabled"
30 echo "Fuzz project 0 dquot"
31 _scratch_xfs_fuzz_metadata '' 'offline' "dquot -p 0" >> $seqres.full
32 echo "Done fuzzing dquot"