mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
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:
parent
0d0158cf23
commit
e3c4e1f89a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user