All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] common/rc: support f2fs for _scratch_mkfs_sized
@ 2015-12-04 22:15 Jaegeuk Kim
  2015-12-04 22:15 ` [PATCH 2/3] common/config: add mkfs options for f2fs Jaegeuk Kim
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jaegeuk Kim @ 2015-12-04 22:15 UTC (permalink / raw)
  To: fstests, linux-f2fs-devel; +Cc: Jaegeuk Kim

The mkfs.f2fs has an option to build a certain sized filesystem by giving
the number of sectors.

So, this patch adds to use that.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
 common/rc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/common/rc b/common/rc
index 4c2f42c..ef913b4 100644
--- a/common/rc
+++ b/common/rc
@@ -739,6 +739,10 @@ _scratch_mkfs_sized()
 	$MKFS_REISER4_PROG $MKFS_OPTIONS -y -b $blocksize $SCRATCH_DEV \
 			   `expr $fssize / 1024`
 	;;
+    f2fs)
+	# mkfs.f2fs requires # of sectors as an input for the size
+	$MKFS_F2FS_PROG $MKFS_OPTIONS $SCRATCH_DEV `expr $fssize / 512`
+	;;
     *)
 	_notrun "Filesystem $FSTYP not supported in _scratch_mkfs_sized"
 	;;
-- 
2.4.9 (Apple Git-60)


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-12-08  0:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-04 22:15 [PATCH 1/3] common/rc: support f2fs for _scratch_mkfs_sized Jaegeuk Kim
2015-12-04 22:15 ` [PATCH 2/3] common/config: add mkfs options for f2fs Jaegeuk Kim
2015-12-04 22:15 ` [PATCH 3/3] f2fs/001: introduce a testcaes for -ENOSPC with inline operation Jaegeuk Kim
2015-12-05 13:11 ` [f2fs-dev] [PATCH 1/3] common/rc: support f2fs for _scratch_mkfs_sized Chao Yu
2015-12-08  0:08   ` Jaegeuk Kim
2015-12-08  0:16 ` [PATCH 1/3 v2] " Jaegeuk Kim

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.