2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2020 Red Hat, Inc.. All Rights Reserved.
7 # Verify that an attempt to create a too-small device with stripe geometry,
8 # is handled gracefully instead of hitting an assert in align_ag_geometry()
10 # This test verifies the problem fixed in xfsprogs with commit
11 # (mkfs.xfs: fix ASSERT on too-small device with stripe geometry)
15 _begin_fstest auto quick mkfs
17 # Override the default cleanup function.
25 # Import common functions.
27 echo 'Silence is golden'
32 localfile=$TEST_DIR/$seq.$$
34 $XFS_IO_PROG -f -c "truncate 10444800" $localfile
36 $MKFS_XFS_PROG -dsu=65536,sw=1 $localfile >> $seqres.full 2>&1
38 [ $? -ne 1 ] && echo "${MKFS_XFS_PROG} should fail gracefully"