forked from Mirrors/btrfs-progs
btrfs-progs: print root dir verbose error in fsck
Before this patch, when btrfsck found an error in root dir, it will only output the following message "root %llu root dir %llu error" without any detailed error. Just add print_inode_error() to print out the whole error. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>master
parent
602536773d
commit
1102b3483b
|
@ -1984,6 +1984,7 @@ static int check_inode_recs(struct btrfs_root *root,
|
||||||
fprintf(stderr, "root %llu root dir %llu error\n",
|
fprintf(stderr, "root %llu root dir %llu error\n",
|
||||||
(unsigned long long)root->root_key.objectid,
|
(unsigned long long)root->root_key.objectid,
|
||||||
(unsigned long long)root_dirid);
|
(unsigned long long)root_dirid);
|
||||||
|
print_inode_error(root, rec);
|
||||||
error++;
|
error++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue