Re: [f2fs-dev] [PATCH] fsck.f2fs: fix incorrect parent blkaddr when adding lost dots

2024-10-24 Thread Chao Yu via Linux-f2fs-devel
On 2024/10/24 11:36, Sheng Yong wrote: If dot or dotdot is lost, fsck tries to add a new dentry by f2fs_add_link(). The blkaddr of the directory inode should be passed to it in order to update the dirty inode at the right place. This patch fixes the uninitialized `blkaddr' to avoid corrupting f2f

[f2fs-dev] [PATCH] fsck.f2fs: fix incorrect parent blkaddr when adding lost dots

2024-10-23 Thread Sheng Yong via Linux-f2fs-devel
If dot or dotdot is lost, fsck tries to add a new dentry by f2fs_add_link(). The blkaddr of the directory inode should be passed to it in order to update the dirty inode at the right place. This patch fixes the uninitialized `blkaddr' to avoid corrupting f2fs image. Signed-off-by: Sheng Yong ---