fsck.f2fs: calculate the total size correctly
RFC PATCH 1/1 fsck.f2fs: calculate the total size correctly
Correctly calculate the total FS size in init_sb_info, for sector size may not be 512 bytes.
Signed-off-by Junling Zheng <[email protected]>
--- fsck/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fsck/mount.c +1 -1
@@ -367,7 +367,7 @@ int init_sb_info(struct f2fs_sb_info *sbi) total_sectors =get_sb (block_count) << sbi->log_sectors_per_block;MSG (0 ,"Info: total FS sectors = %" PRIu64" (%" PRIu64" MB)\n" , - total_sectors, total_sectors >>11 ); + total_sectors, total_sectors * config.sector_size >>20 );return 0 ; }
Signature · 9 lines
1.9.1 ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140