mkfs.f2fs: show bytes for total_sectors

This patch shows correct information about total_sectors.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2015-03-20 16:41:59 -07:00
parent 3c160e7d11
commit c93d54a186
2 changed files with 5 additions and 4 deletions

View File

@ -497,8 +497,8 @@ int f2fs_get_device_info(struct f2fs_configuration *c)
}
MSG(0, "Info: sector size = %u\n", c->sector_size);
MSG(0, "Info: total sectors = %"PRIu64" (in %u bytes)\n",
c->total_sectors, c->sector_size);
MSG(0, "Info: total sectors = %"PRIu64" (%"PRIu64" MB)\n",
c->total_sectors, c->total_sectors >> 11);
if (c->total_sectors <
(F2FS_MIN_VOLUME_SIZE / c->sector_size)) {
MSG(0, "Error: Min volume size supported is %d\n",

View File

@ -103,8 +103,9 @@ static void f2fs_parse_options(int argc, char *argv[])
if ((optind + 1) < argc) {
/* We have a sector count. */
config.total_sectors = atoll(argv[optind+1]);
MSG(0, "\ttotal_sectors=%08"PRIx64" (%s bytes)\n",
config.total_sectors, argv[optind+1]);
MSG(1, "\ttotal_sectors=%"PRIx64" (%"PRIx64" bytes)\n",
config.total_sectors,
config.total_sectors * 512);
}
config.reserved_segments =