From: Carlos Maiolino Date: Wed, 24 May 2023 13:42:07 +0000 (+0200) Subject: common/rc: Enable _test_mkfs to force a mkfs on a xfs filesystem X-Git-Tag: v2023.06.18^0 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=87f90a2dae7a4adb7a0a314e27abae9aa1de78fb;p=xfstests-dev.git common/rc: Enable _test_mkfs to force a mkfs on a xfs filesystem Calling _test_mkfs on an already initialized xfs FS will fail as the initialization is not enforced by '-f' argument, unless it's included in MKFS_OPTIONS. So, adding 'RECREATE_TEST_DEV=true' to the config file end up being useless for xfs filesystems. So, adding the a specific xfs optiong in _test_mkfs using -f argument makes RECREATE_TEST_DEV actually useful. Signed-off-by: Carlos Maiolino Reviewed-by: Darrick J. Wong Signed-off-by: Zorro Lang --- diff --git a/common/rc b/common/rc index d9df7b7a..741579af 100644 --- a/common/rc +++ b/common/rc @@ -605,6 +605,9 @@ _test_mkfs() ext2|ext3|ext4) $MKFS_PROG -t $FSTYP -- -F $MKFS_OPTIONS $* $TEST_DEV ;; + xfs) + $MKFS_PROG -t $FSTYP -- -f $MKFS_OPTIONS $* $TEST_DEV + ;; *) yes | $MKFS_PROG -t $FSTYP -- $MKFS_OPTIONS $* $TEST_DEV ;;