Btrfs-progs: lookup all roots that point to a corrupt block
authorJosef Bacik <jbacik@fb.com>
Fri, 10 Oct 2014 20:57:10 +0000 (16:57 -0400)
committerDavid Sterba <dsterba@suse.cz>
Tue, 14 Oct 2014 09:11:58 +0000 (11:11 +0200)
commite3966ec9d099c0e8ac7261a62720528ef901f182
tree8e057c73892b5597a11badeb6c71377c74de0c6d
parent01f868b5a99b412212ede924a81aa15e6d408381
Btrfs-progs: lookup all roots that point to a corrupt block

If we have a corrupt block that multiple snapshots point to we will only fix the
guy who originally pointed to the block, and then simply loop forever because we
keep finding the same bad block.  So instead lookup all roots that point to this
block, and then search down to the block for each root and fix the block in all
snapshots.  Thanks,

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