diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libf2fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libf2fs.c b/lib/libf2fs.c index f0a8861..8e10e6a 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -552,7 +552,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" (%"PRIu64" MB)\n", - c->total_sectors, c->total_sectors >> 11); + c->total_sectors, (c->total_sectors * + (c->sector_size >> 9)) >> 11); return 0; } |