* [PATCH] fsck.f2fs: print node block address
@ 2018-07-28 10:40 Chao Yu
0 siblings, 0 replies; only message in thread
From: Chao Yu @ 2018-07-28 10:40 UTC (permalink / raw)
To: jaegeuk; +Cc: linux-f2fs-devel, linux-kernel, chao, Chao Yu
Print block address of unreachable node id in fsck_verify() for better
debugging.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
---
fsck/fsck.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/fsck/fsck.c b/fsck/fsck.c
index bb1da0305f2c..20a569228516 100644
--- a/fsck/fsck.c
+++ b/fsck/fsck.c
@@ -2507,7 +2507,11 @@ int fsck_verify(struct f2fs_sb_info *sbi)
for (i = 0; i < fsck->nr_nat_entries; i++) {
if (f2fs_test_bit(i, fsck->nat_area_bitmap) != 0) {
- printf("NID[0x%x] is unreachable\n", i);
+ struct node_info ni;
+
+ get_node_info(sbi, i, &ni);
+ printf("NID[0x%x] is unreachable, blkaddr:0x%x\n",
+ i, ni.blk_addr);
nr_unref_nid++;
}
}
--
2.18.0.rc1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-07-28 10:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-28 10:40 [PATCH] fsck.f2fs: print node block address Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).