On 2018/4/9 11:34, Yunlei He wrote: > Now, nat bits feature is enabled by default, we will > meet with the following scenarios: > > i. disabled, without CP_NAT_BITS_FLAG, if fsck find some > fs errors, fix or write new checkpoint will then enable it. > ii. enabled, with CP_NAT_BITS_FLAG, in the case of sudden > power off, bitmap will get lost but CP_NAT_BITS_FLAG > still exist, fsck will recover bitmap in f2fs_do_mount. > iii. enabled, with CP_NAT_BITS_FLAG, both of bitmap and > CP_NAT_BITS_FLAG will get lost if not enough space for > nat bits or nat bits check failed during mounting. > SBI_NEED_FSCK is set, fsck will recover flag and bitmap > before next mount. > > SBI_NEED_FSCK means fs is corrupted, is not suitable for > nat bits disabled. This patch try to recover nat bits all > by fsck, no need set SBI_NEED_FSCK flag in kernel. > > Signed-off-by: Yunlei He <heyun...@huawei.com>
Reviewed-by: Chao Yu <yuch...@huawei.com> Thanks, ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel