Skip to contentSkip to conversation

dump.f2fs: dump symlink contents in lost_found

PATCH New Jaegeuk Kim 1 participant 1 message Jul 7, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dump.f2fs: dump symlink contents in lost_found

Let's allow to show symlink path.

---
 fsck/dump.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fsck/dump.c +2 -1
index 001b7cb..e472eb7 100644
@@ -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;
 	}
Signature · 8 lines
2.27.0.383.g050319c2ae-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel