mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
fsck.f2fs: print node block address
Print block address of unreachable node id in fsck_verify() for better debugging. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
91bb7b21f7
commit
1ab72dec87
@ -2523,7 +2523,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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user