aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2017-01-24 10:42:53 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-02-03 10:29:44 -0800
commitad1bb005b90fc59b03ac491df866ccc8039fc180 (patch)
tree0399513f0277e4724df61096b3859221f220eddf
parentb4436b086e929c7f9d3caa029e40a961fc59e239 (diff)
downloadf2fs-tools-ad1bb005b90fc59b03ac491df866ccc8039fc180.tar.gz
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 <kinglongmee@gmail.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r--mkfs/f2fs_format_main.c3
1 files changed, 0 insertions, 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);
}