Re: [f2fs-dev] [PATCH] f2fs-tools: set segment_count in super block correctly

2016-02-01 Thread Jaegeuk Kim
Hi Fan, On Mon, Feb 01, 2016 at 05:23:33PM +0800, Fan Li wrote: > Now f2fs will check statistics recorded in super block in > sanity_check_area_boundary() > during mount,if number of segments per section is greater than 1, and disk > space > isn't aligned with section, mount will fail due to fo

[f2fs-dev] [PATCH] f2fs-tools: set segment_count in super block correctly

2016-02-01 Thread Fan Li
Now f2fs will check statistics recorded in super block in sanity_check_area_boundary() during mount,if number of segments per section is greater than 1, and disk space isn't aligned with section, mount will fail due to following condition: main_blkaddr + (segment_count_main << log_blocks_per_se