blob: b6d579805850f37e03ec9e0a5836f7440c758a74 (
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
32
|
#! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2023 Red Hat, Inc. All Rights Reserved.
#
# FS QA Test 569
#
# Check for any installed example mkfs config files and validate that
# mkfs.xfs can properly use them.
#
. ./common/preamble
_begin_fstest mkfs
# real QA test starts here
# Modify as appropriate.
_supported_fs xfs
_require_scratch_nocheck
ls /usr/share/xfsprogs/mkfs/*.conf &>/dev/null || \
_notrun "No mkfs.xfs config files installed"
# We only fail if mkfs.xfs fails outright, ignoring warnings etc
echo "Silence is golden"
for CONFIG in /usr/share/xfsprogs/mkfs/*.conf; do
$MKFS_XFS_PROG -c options=$CONFIG -f $SCRATCH_DEV &>>$seqres.full || \
echo "mkfs.xfs config file $CONFIG failed"
done
# success, all done
status=0
exit
|