xfs: no excessive warnings about dprecated mount options on remount
[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 seq=`basename $0`
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
13
14 here=`pwd`
15 tmp=/tmp/$$
16 status=1        # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
18
19 _cleanup()
20 {
21     cd /
22     rm -f $tmp.*
23 }
24
25 # get standard environment, filters and checks
26 . ./common/rc
27 . ./common/filter
28
29 # real QA test starts here
30
31 # Modify as appropriate.
32 _supported_fs xfs
33 _require_test
34
35 fsfile=$TEST_DIR/fsfile.$seq
36
37 rm -f $fsfile
38 $XFS_IO_PROG -f -c "truncate 256g" $fsfile
39
40 echo "mkfs.xfs without geometry"
41 mkfs.xfs -f $fsfile | _filter_mkfs 2> $tmp.mkfs > /dev/null
42 grep -E 'ddev|agcount|agsize' $tmp.mkfs | \
43     sed -e "s:$fsfile:FILENAME:g"
44
45 echo "mkfs.xfs with cmdline geometry"
46 mkfs.xfs -f -d su=16k,sw=5 $fsfile | _filter_mkfs 2> $tmp.mkfs > /dev/null
47 grep -E 'ddev|agcount|agsize' $tmp.mkfs | \
48     sed -e "s:$fsfile:FILENAME:g"
49
50 rm -f $fsfile
51
52 # success, all done
53 status=0
54 exit