From: Chao Yu <chao@kernel.org>
To: Zorro Lang <zlang@kernel.org>, fstests@vger.kernel.org
Cc: jaegeuk@kernel.org, linux-f2fs-devel@lists.sourceforge.net,
Chao Yu <chao@kernel.org>, Zorro Lang <zlang@redhat.com>
Subject: [PATCH v5 4/6] common/rc: use -f for mkfs.f2fs by default
Date: Tue, 25 Mar 2025 20:58:22 +0800 [thread overview]
Message-ID: <20250325125824.3367060-4-chao@kernel.org> (raw)
In-Reply-To: <20250325125824.3367060-1-chao@kernel.org>
Otherwise, mkfs will fail due to there is an existing filesystem
in the image.
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Chao Yu <chao@kernel.org>
---
common/rc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/rc b/common/rc
index e5168638..ac2bac81 100644
--- a/common/rc
+++ b/common/rc
@@ -993,7 +993,7 @@ _scratch_mkfs()
mkfs_filter="grep -v -e ^Warning: -e \"^mke2fs \""
;;
f2fs)
- mkfs_cmd="$MKFS_F2FS_PROG"
+ mkfs_cmd="$MKFS_F2FS_PROG -f"
mkfs_filter="cat"
;;
ocfs2)
@@ -1336,7 +1336,7 @@ _try_scratch_mkfs_sized()
f2fs)
# mkfs.f2fs requires # of sectors as an input for the size
local sector_size=`blockdev --getss $SCRATCH_DEV`
- $MKFS_F2FS_PROG $MKFS_OPTIONS "$@" $SCRATCH_DEV `expr $fssize / $sector_size`
+ $MKFS_F2FS_PROG -f $MKFS_OPTIONS "$@" $SCRATCH_DEV `expr $fssize / $sector_size`
;;
tmpfs)
local free_mem=`_free_memory_bytes`
--
2.48.1
WARNING: multiple messages have this Message-ID (diff)
From: Chao Yu via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net>
To: Zorro Lang <zlang@kernel.org>, fstests@vger.kernel.org
Cc: jaegeuk@kernel.org, Zorro Lang <zlang@redhat.com>,
linux-f2fs-devel@lists.sourceforge.net
Subject: [f2fs-dev] [PATCH v5 4/6] common/rc: use -f for mkfs.f2fs by default
Date: Tue, 25 Mar 2025 20:58:22 +0800 [thread overview]
Message-ID: <20250325125824.3367060-4-chao@kernel.org> (raw)
In-Reply-To: <20250325125824.3367060-1-chao@kernel.org>
Otherwise, mkfs will fail due to there is an existing filesystem
in the image.
Cc: Jaegeuk Kim <jaegeuk@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Chao Yu <chao@kernel.org>
---
common/rc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/rc b/common/rc
index e5168638..ac2bac81 100644
--- a/common/rc
+++ b/common/rc
@@ -993,7 +993,7 @@ _scratch_mkfs()
mkfs_filter="grep -v -e ^Warning: -e \"^mke2fs \""
;;
f2fs)
- mkfs_cmd="$MKFS_F2FS_PROG"
+ mkfs_cmd="$MKFS_F2FS_PROG -f"
mkfs_filter="cat"
;;
ocfs2)
@@ -1336,7 +1336,7 @@ _try_scratch_mkfs_sized()
f2fs)
# mkfs.f2fs requires # of sectors as an input for the size
local sector_size=`blockdev --getss $SCRATCH_DEV`
- $MKFS_F2FS_PROG $MKFS_OPTIONS "$@" $SCRATCH_DEV `expr $fssize / $sector_size`
+ $MKFS_F2FS_PROG -f $MKFS_OPTIONS "$@" $SCRATCH_DEV `expr $fssize / $sector_size`
;;
tmpfs)
local free_mem=`_free_memory_bytes`
--
2.48.1
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
next prev parent reply other threads:[~2025-03-25 12:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-25 12:58 [PATCH v5 1/6] common/config: remove redundant export variables Chao Yu
2025-03-25 12:58 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2025-03-25 12:58 ` [PATCH v5 2/6] common/config: export F2FS_INJECT_PROG Chao Yu
2025-03-25 12:58 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2025-03-25 12:58 ` [PATCH v5 3/6] common/config: export F2FS_FSCK_PROG Chao Yu
2025-03-25 12:58 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2025-03-25 12:58 ` Chao Yu [this message]
2025-03-25 12:58 ` [f2fs-dev] [PATCH v5 4/6] common/rc: use -f for mkfs.f2fs by default Chao Yu via Linux-f2fs-devel
2025-03-25 12:58 ` [PATCH v5 5/6] common/rc: introduce _check_f2fs_filesystem() Chao Yu
2025-03-25 12:58 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2025-03-25 12:58 ` [PATCH v5 6/6] f2fs/009: detect and repair nlink corruption Chao Yu
2025-03-25 12:58 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2025-03-25 23:20 ` Dave Chinner
2025-03-25 23:20 ` [f2fs-dev] " Dave Chinner via Linux-f2fs-devel
2025-03-26 0:47 ` Zorro Lang
2025-03-26 0:47 ` [f2fs-dev] " Zorro Lang via Linux-f2fs-devel
2025-03-26 3:24 ` Chao Yu
2025-03-26 3:24 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250325125824.3367060-4-chao@kernel.org \
--to=chao@kernel.org \
--cc=fstests@vger.kernel.org \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=zlang@kernel.org \
--cc=zlang@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.