* [f2fs-dev] [PATCH] dump.f2fs: dump symlink contents in lost_found
@ 2020-07-07 2:53 Jaegeuk Kim
0 siblings, 0 replies; only message in thread
From: Jaegeuk Kim @ 2020-07-07 2:53 UTC (permalink / raw)
To: linux-f2fs-devel; +Cc: Jaegeuk Kim
Let's allow to show symlink path.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
---
fsck/dump.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fsck/dump.c b/fsck/dump.c
index 001b7cb..e472eb7 100644
--- a/fsck/dump.c
+++ b/fsck/dump.c
@@ -424,7 +424,8 @@ static void dump_file(struct f2fs_sb_info *sbi, struct node_info *ni,
return;
}
- if (!S_ISREG(imode) || namelen == 0 || namelen > F2FS_NAME_LEN) {
+ if ((!S_ISREG(imode) && !S_ISLNK(imode)) ||
+ namelen == 0 || namelen > F2FS_NAME_LEN) {
MSG(force, "Not a regular file or wrong name info\n\n");
return;
}
--
2.27.0.383.g050319c2ae-goog
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-07 2:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-07 2:53 [f2fs-dev] [PATCH] dump.f2fs: dump symlink contents in lost_found Jaegeuk Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).