[PATCH] Btrfs-progs: check blocks when checking fs roots V2

2014-10-03 Thread Josef Bacik
Usually if we find a bad block during the extent tree stuff we will error out, but if the bad block is in an fs tree and doens't have extents in it then fsck may still pass even though the block was complete garbage. So add the check block logic to the fs root checking so we actually error out of

[PATCH] Btrfs-progs: check blocks when checking fs roots

2014-10-02 Thread Josef Bacik
If check block fails during the extent tree checks we could evict the extent buffer from cache, so the next time we go to read it for the fs_tree checks we could miss the fact that its bogus and blow up in strange and interesting ways. Fix this by running the leaf/node checks on all blocks in the f