projects
/
platform
/
upstream
/
f2fs-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d0158c
)
dump.f2fs: dump symlink contents in lost_found
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 30 Jun 2020 17:37:32 +0000
(10:37 -0700)
committer
Jaegeuk 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
patch
|
blob
|
history
diff --git
a/fsck/dump.c
b/fsck/dump.c
index
001b7cb
..
e472eb7
100644
(file)
--- 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;
}