diff options
author | Qu Wenruo <quwenruo@cn.fujitsu.com> | 2014-12-03 12:18:27 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-12-04 14:37:44 +0100 |
commit | 1102b3483b12da9e8040d2fe4e18e4d64146000a (patch) | |
tree | fb76de90922b1c47340a223020a6a6471bf74b0f | |
parent | 602536773da3a80a9b550f02acd0a2a576018dfb (diff) |
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>
-rw-r--r-- | cmds-check.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds-check.c b/cmds-check.c index 389674f8..9fc14101 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -1984,6 +1984,7 @@ static int check_inode_recs(struct btrfs_root *root, fprintf(stderr, "root %llu root dir %llu error\n", (unsigned long long)root->root_key.objectid, (unsigned long long)root_dirid); + print_inode_error(root, rec); error++; } } else { |