btrfs-progs: check blocks when checking fs roots
authorJosef Bacik <jbacik@fb.com>
Fri, 3 Oct 2014 14:50:15 +0000 (10:50 -0400)
committerDavid Sterba <dsterba@suse.cz>
Tue, 14 Oct 2014 09:06:31 +0000 (11:06 +0200)
commitf738a758af3b04c302dca2a1c50b9a021a40148c
tree337d95744ec4122f6ffc9eae17c1f8a950c1eb0b
parent187b85436b8d2209bb0df1d67a97be711663615e
btrfs-progs: check blocks when checking fs roots

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 fsck if there is
a bad block.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-check.c