summaryrefslogtreecommitdiff
path: root/tests/xfs/143
blob: 185b638730b5c573e4a9482e06c6aef90b683ca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2021 Oracle.  All Rights Reserved.
#
# FS QA Test No. 143
#
# Make sure mkfs sets up enough of the rt geometry that we can compute the
# correct min log size for formatting the fs.
#
# This is a regression test for the xfsprogs commit 31409f48 ("mkfs: set
# required parts of the realtime geometry before computing log geometry").

. ./common/preamble
_begin_fstest auto quick realtime mount

# Import common functions.
. ./common/filter

# real QA test starts here
_supported_fs xfs
_require_scratch
_require_realtime

# Format a tiny filesystem to force minimum log size, then see if it mounts
_scratch_mkfs -r size=1m -d size=100m > $seqres.full
_scratch_mount >> $seqres.full
echo "Silence is golden"

# success, all done
status=0
exit