xfs/530: skip test if user MKFS_OPTIONS screw up formatting
[xfstests-dev.git] / tests / xfs / 488
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2018 Oracle, Inc.  All rights reserved.
4 #
5 # FS QA Test No. 488
6 #
7 # Populate a XFS filesystem and fuzz every group dquot field.
8 # Do not fix the filesystem, to test metadata verifiers.
9
10 . ./common/preamble
11 _begin_fstest dangerous_fuzzers dangerous_norepair
12
13 _register_cleanup "_cleanup" BUS
14
15 # Import common functions.
16 . ./common/filter
17 . ./common/populate
18 . ./common/fuzzy
19 . ./common/quota
20
21 # real QA test starts here
22 _supported_fs xfs
23 _require_scratch_xfs_fuzz_fields
24 _disable_dmesg_check
25 _require_quota
26
27 echo "Format and populate"
28 _scratch_populate_cached nofill > $seqres.full 2>&1
29 echo "${MOUNT_OPTIONS}" | grep -q 'grpquota' || _notrun "group quota disabled"
30
31 echo "Fuzz group 0 dquot"
32 _scratch_xfs_fuzz_metadata '' 'none'  "dquot -g 0" >> $seqres.full
33 echo "Done fuzzing dquot"
34
35 # success, all done
36 status=0
37 exit