mkfs.f2fs: support large sector size
authorChao Yu <chao2.yu@samsung.com>
Thu, 5 Feb 2015 09:36:39 +0000 (17:36 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 6 Feb 2015 02:42:01 +0000 (18:42 -0800)
commitb6012fd6a177856c5f97a5b56bb72b46cf3ab388
tree30421a28fa282191e98a8cacf2871c317935d26d
parent631f8166bb1634d543a443479513a175cc260f16
mkfs.f2fs: support large sector size

Since f2fs support large sector size in commit 55cf9cb63f0e "f2fs: support large
sector size", block device with sector size of 512/1024/2048/4096 bytes can be
supported.

But mkfs.f2fs still use default sector size: 512 bytes as sector size, let's fix
this issue in this patch.

v2:
 o remove unneeded printed message when sector size is large than 512 bytes
   suggested by Kinglong.
 o show correct sector size in printed message.
 o use config.sectors_per_blk instead of DEFAULT_SECTORS_PER_BLOCK suggested by
   Kinglong.
v3:
 o remove another unneeded printed message when sector size is large than 512
   bytes suggested by Kinglong.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Reviewed-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
lib/libf2fs.c
mkfs/f2fs_format.c
mkfs/f2fs_format_utils.c