xfs/530: skip test if user MKFS_OPTIONS screw up formatting
[xfstests-dev.git] / tests / xfs / 143
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Copyright (c) 2021 Oracle.  All Rights Reserved.
4 #
5 # FS QA Test No. 143
6 #
7 # Make sure mkfs sets up enough of the rt geometry that we can compute the
8 # correct min log size for formatting the fs.
9 #
10 # This is a regression test for the xfsprogs commit 31409f48 ("mkfs: set
11 # required parts of the realtime geometry before computing log geometry").
12
13 . ./common/preamble
14 _begin_fstest auto quick realtime mount
15
16 # Import common functions.
17 . ./common/filter
18
19 # real QA test starts here
20 _supported_fs xfs
21 _require_scratch
22 _require_realtime
23
24 # Format a tiny filesystem to force minimum log size, then see if it mounts
25 _scratch_mkfs -r size=1m -d size=100m > $seqres.full
26 _scratch_mount >> $seqres.full
27 echo "Silence is golden"
28
29 # success, all done
30 status=0
31 exit