dump.f2fs: dump symlink contents in lost_found

Let's allow to show symlink path.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2020-06-30 10:37:32 -07:00
parent 0d0158cf23
commit e3c4e1f89a

View 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;
}