Btrfs-progs: add csum tree checks to btrfsck
authorJosef Bacik <jbacik@fusionio.com>
Thu, 28 Mar 2013 17:51:03 +0000 (13:51 -0400)
committerDavid Sterba <dsterba@suse.cz>
Tue, 23 Apr 2013 16:56:26 +0000 (18:56 +0200)
commit580ccf9e2ef4607f5b67b531190e7842c4b2b0db
tree7b492bfe8f9c42934f3cc592a5a25897bb1c977d
parent82ecc3670856efc9e9faa62bab75dd216ec2be94
Btrfs-progs: add csum tree checks to btrfsck

Looking at a recent user problem I noticed there are weird cases we could
possibly be leaving csums in place for an extent we've free'd.  I don't think
this can happen unless the extent tree is also corrupt, but just in case I'm
adding sanity checks to btrfsck.  This way we will catch this if it happens
normally since xfstests runs btrfsck between each run.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
cmds-check.c