[PATCH] erofs-utils: fsck: fix directory loop tracking

Gao Xiang hsiangkao at linux.alibaba.com
Sun Mar 22 11:41:26 AEDT 2026



On 2026/3/22 00:05, Nithurshen wrote:
> Hi Xiang,
> 
> This patch LGTM.
> 
> I tested the fix by compiling fsck with a debug trace and running
> it against an image with a nested directory structure. I verified
> that the recursion stack now correctly pushes the current directory's
> NID (inode.nid) instead of inheriting the parent's NID, successfully
> fixing the loop tracking logic.

Please help work on a testcase too, thanks.

> 
> Reviewed-by: Nithurshen <nithurshen.dev at gmail.com>
> Tested-by: Nithurshen <nithurshen.dev at gmail.com>



More information about the Linux-erofs mailing list