From ad1bb005b90fc59b03ac491df866ccc8039fc180 Mon Sep 17 00:00:00 2001 From: Kinglong Mee Date: Tue, 24 Jan 2017 10:42:53 +0800 Subject: [PATCH] mkfs.f2fs: fix bad assignment of total_sectors for f2fs_configuration wanted_total_sectors is introduced instead total_sectors, so that, the initialize is a fault, drop it. Signed-off-by: Kinglong Mee Signed-off-by: Jaegeuk Kim --- mkfs/f2fs_format_main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mkfs/f2fs_format_main.c b/mkfs/f2fs_format_main.c index db1dc94..5bb1faf 100644 --- a/mkfs/f2fs_format_main.c +++ b/mkfs/f2fs_format_main.c @@ -151,9 +151,6 @@ static void f2fs_parse_options(int argc, char *argv[]) c.wanted_total_sectors = atoll(argv[optind+1]); } - if ((optind + 1) < argc) - c.total_sectors = atoll(argv[optind+1]); - if (c.zoned_mode) c.feature |= cpu_to_le32(F2FS_FEATURE_BLKZONED); } -- 2.7.4