Skip to contentSkip to conversation

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

PATCH New Gao Xiang 1 participant 1 message Feb 9, 2023 Library code

lore
Share & tools
lore

Gao Xiang

author
#0 lore raw

PATCH 1/1 erofs-utils: mkfs: don't skip `lost+found`

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

Fixes a17497f0844a ("erofs-utils: introduce inode operations")
---
 lib/inode.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
lib/inode.c +1 -2
index 87613c6..6fd28a2 100644
@@ -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 */
Signature · 1 line
2.24.4