mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
synced 2024-11-24 02:03:37 +08:00
1228009520
If the following process returns an error, the quota inode, not the quota file, is damaged. (fsck_chk_quota_node-->fsck_chk_node_blk-->sanity_check_nid) The fsck does not have a process to rebuild the quota inode. Because sanity_check_nid is not passed, fsck->nat_area_bitmap can not be cleared, and then the NAT of quota will be nullify during fix_nat_entries. During the next fsck check, the quota inode check fails because the address of the quota inode changes to 0. In addition, in fsck_chk_quota_files-->f2fs_filesize_update, data is written to address 0. Therefore, when the quota inode is corrupted, we need to rebuild it. Signed-off-by: Wang Xiaojun <wangxiaojun11@huawei.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> |
||
---|---|---|
.. | ||
f2fs_format_main.c | ||
f2fs_format_utils.c | ||
f2fs_format_utils.h | ||
f2fs_format.c | ||
Makefile.am |