]> 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)
commitdc59dd5d8f6a4a13670deb70544a0cb4f2ac6c18
treed120e529a489b24d6d569433c1c6b2f7772ee280
parent28e14ef324d29e22ed5be2fbb2464aefc4f8d89f
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