dump.f2fs: dump symlink contents in lost_found
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 30 Jun 2020 17:37:32 +0000 (10:37 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 7 Jul 2020 03:13:11 +0000 (20:13 -0700)
Let's allow to show symlink path.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/dump.c

index 001b7cb..e472eb7 100644 (file)
@@ -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;
        }