fstests: move test group info to test files
[xfstests-dev.git] / tests / xfs / 292
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2012 Red Hat, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 292
6 #
7 # Ensure mkfs with stripe geometry goes into multidisk mode
8 # which results in more AGs
9 #
10 . ./common/preamble
11 _begin_fstest auto mkfs quick
12
13 # Import common functions.
14 . ./common/filter
15
16 # real QA test starts here
17
18 # Modify as appropriate.
19 _supported_fs xfs
20 _require_test
21
22 fsfile=$TEST_DIR/fsfile.$seq
23
24 rm -f $fsfile
25 $XFS_IO_PROG -f -c "truncate 256g" $fsfile
26
27 echo "mkfs.xfs without geometry"
28 mkfs.xfs -f $fsfile | _filter_mkfs 2> $tmp.mkfs > /dev/null
29 grep -E 'ddev|agcount|agsize' $tmp.mkfs | \
30     sed -e "s:$fsfile:FILENAME:g"
31
32 echo "mkfs.xfs with cmdline geometry"
33 mkfs.xfs -f -d su=16k,sw=5 $fsfile | _filter_mkfs 2> $tmp.mkfs > /dev/null
34 grep -E 'ddev|agcount|agsize' $tmp.mkfs | \
35     sed -e "s:$fsfile:FILENAME:g"
36
37 rm -f $fsfile
38
39 # success, all done
40 status=0
41 exit