Message ID | 20241226133631.9486-1-chao@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [f2fs-dev,v4,1/2] common/rc: support f2fs in _mkfs_dev() | expand |
On Thu, Dec 26, 2024 at 09:36:30PM +0800, Chao Yu wrote: > 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> > --- > v4: > - no updates > common/rc | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/common/rc b/common/rc > index 7b5bc0b4..ecac2de8 100644 > --- 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 $* > + ;; Oh, that's fine to me if you don't want to use mkfs.f2fs directly. Reviewed-by: Zorro Lang <zlang@redhat.com> > xfs) > $MKFS_PROG -t $FSTYP -- -f $MKFS_OPTIONS $* > ;; > -- > 2.40.1 >
diff --git a/common/rc b/common/rc index 7b5bc0b4..ecac2de8 100644 --- 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 $* ;;
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> --- v4: - no updates common/rc | 3 +++ 1 file changed, 3 insertions(+)