]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: print error messages when failing to read trees
authorLiu Bo <bo.liu@linux.alibaba.com>
Wed, 28 Mar 2018 22:11:45 +0000 (06:11 +0800)
committerDavid Sterba <dsterba@suse.com>
Sat, 31 Mar 2018 00:02:14 +0000 (02:02 +0200)
commit7c05398c26b5e9c4af8f466d963de33c038c95f5
treed120e529a489b24d6d569433c1c6b2f7772ee280
parent2391e85857e0cdfd17187d7b56c6e366d69c8c32
Btrfs: print error messages when failing to read trees

When mount fails to read trees like fs tree, checksum tree, extent
tree, etc, there is not enough information about where went wrong.

With this, messages like

"BTRFS warning (device sdf): failed to read root (objectid=7): -5"

would help us a bit.

Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c