2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2012 Red Hat, Inc. All Rights Reserved.
7 # Ensure mkfs with stripe geometry goes into multidisk mode
8 # which results in more AGs
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
29 # real QA test starts here
31 # Modify as appropriate.
35 fsfile=$TEST_DIR/fsfile.$seq
38 $XFS_IO_PROG -f -c "truncate 256g" $fsfile
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"
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"