]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/rc: Enable _test_mkfs to force a mkfs on a xfs filesystem v2023.06.18
authorCarlos Maiolino <cmaiolino@redhat.com>
Wed, 24 May 2023 13:42:07 +0000 (15:42 +0200)
committerZorro Lang <zlang@kernel.org>
Sun, 18 Jun 2023 13:08:32 +0000 (21:08 +0800)
commit87f90a2dae7a4adb7a0a314e27abae9aa1de78fb
tree94d92f2e1d7d10c453bc9c04846c5973546a0c3f
parent7cef6bf6dc8d10648a3208c8c629c3eb72e93135
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 <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc