Btrfs-progs: add ability to corrupt metadata block fields
authorJosef Bacik <jbacik@fusionio.com>
Tue, 1 Oct 2013 12:54:58 +0000 (08:54 -0400)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:23:11 +0000 (08:23 -0400)
commitfd815de85937c8ef64adcee6596c0b7f6655c461
treeec77a6224360cbce9eb42beab9f5732b7aa4895f
parent0d342f8fcb5d99fbdc0765974570d6c335460904
Btrfs-progs: add ability to corrupt metadata block fields

This patch allows us to garble the generation field of a metadata block.  We
will search down to the block, set the bogus generation and write the block back
out.  I used this for verifying a transid fix patch for btrfsck.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
btrfs-corrupt-block.c