From: Josef Bacik Date: Tue, 19 Mar 2013 16:13:25 +0000 (-0400) Subject: Btrfs: handle a bogus chunk tree nicely X-Git-Tag: v3.9-rc5~8^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=835d974fabfa9bff4d173ad03c054ac2f673263f;p=pandora-kernel.git Btrfs: handle a bogus chunk tree nicely If you restore a btrfs-image file system and try to mount that file system we'll panic. That's because btrfs-image restores and just makes one big chunk to envelope the whole disk, since they are really only meant to be messed with by our btrfs-progs. So fix up btrfs_rmap_block and the callers of it for mount so that we no longer panic but instead just return an error and fail to mount. Thanks, Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed