[PATCH] erofs-utils: mkfs: don't skip `lost+found`

Gao Xiang hsiangkao at linux.alibaba.com
Thu Feb 9 14:35:24 AEDT 2023


It's somewhat strange to skip the `lost+found` directory.

Fixes: a17497f0844a ("erofs-utils: introduce inode operations")
Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
---
 lib/inode.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/inode.c b/lib/inode.c
index 87613c6..6fd28a2 100644
--- a/lib/inode.c
+++ b/lib/inode.c
@@ -1082,8 +1082,7 @@ static struct erofs_inode *erofs_mkfs_build_tree(struct erofs_inode *dir)
 		if (!dp)
 			break;
 
-		if (is_dot_dotdot(dp->d_name) ||
-		    !strncmp(dp->d_name, "lost+found", strlen("lost+found")))
+		if (is_dot_dotdot(dp->d_name))
 			continue;
 
 		/* skip if it's a exclude file */
-- 
2.24.4



More information about the Linux-erofs mailing list