mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-26 19:51:32 +00:00
fsck: fix name search
The next name slots should be calculated by F2FS_SLOT_LEN not F2FS_NAME_LEN. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
This commit is contained in:
parent
679ca83b9e
commit
0307b93ce2
@ -537,7 +537,7 @@ int fsck_chk_dentry_blk(struct f2fs_sb_info *sbi,
|
||||
|
||||
ASSERT(ret >= 0);
|
||||
|
||||
i += (name_len + F2FS_NAME_LEN - 1) / F2FS_NAME_LEN;
|
||||
i += (name_len + F2FS_SLOT_LEN - 1) / F2FS_SLOT_LEN;
|
||||
dentries++;
|
||||
*child_files = *child_files + 1;
|
||||
free(name);
|
||||
|
Loading…
Reference in New Issue
Block a user