aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@linux.alibaba.com>2023-02-09 11:35:24 +0800
committerGao Xiang <hsiangkao@linux.alibaba.com>2023-02-09 14:13:44 +0800
commitb1dfb6ec46b91bb49f7498446409e5b9fa3e169a (patch)
tree845c9010afce0d7e397678a1dc2373de90dc3d94
parent7c49e8b195ad90f6ca9dfccce9f6e3e39a8676f6 (diff)
downloaderofs-utils-b1dfb6ec46b91bb49f7498446409e5b9fa3e169a.tar.gz
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") Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com> Link: https://lore.kernel.org/r/20230209033524.38234-1-hsiangkao@linux.alibaba.com
-rw-r--r--lib/inode.c3
1 files changed, 1 insertions, 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 */