]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: support f2fs in _mkfs_dev()
authorChao Yu <chao@kernel.org>
Thu, 26 Dec 2024 13:36:30 +0000 (21:36 +0800)
committerZorro Lang <zlang@kernel.org>
Sat, 28 Dec 2024 04:30:53 +0000 (12:30 +0800)
Then, f2fs/* testcases can use this wrapped common helper instead of
raw codes.

Suggested-by: Zorro Lang <zlang@kernel.org>
Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc

index 7b5bc0b4504737f1e9ea5081bd3c522bca5d1ba2..ecac2de871490bf4d578638e749bd887dd863529 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -833,6 +833,9 @@ _try_mkfs_dev()
     ext2|ext3|ext4)
        $MKFS_PROG -t $FSTYP -- -F $MKFS_OPTIONS $*
        ;;
+    f2fs)
+       $MKFS_PROG -t $FSTYP -- -f $MKFS_OPTIONS $*
+       ;;
     xfs)
        $MKFS_PROG -t $FSTYP -- -f $MKFS_OPTIONS $*
        ;;