Btrfs-progs: setup framework to corrupt specific fields of an inode
authorJosef Bacik <jbacik@fusionio.com>
Mon, 9 Sep 2013 20:41:54 +0000 (16:41 -0400)
committerChris Mason <chris.mason@fusionio.com>
Wed, 16 Oct 2013 12:20:43 +0000 (08:20 -0400)
commiteb626f49181bbff8bd9eed64c3544d57907fe91a
tree14312aef180cec2c4c1c9e6831690af00a466e7b
parent114a79f8236a7fdf5268cf9efe701e3413941419
Btrfs-progs: setup framework to corrupt specific fields of an inode

A user reported a problem with his fs where he had a bogus isize on his
directory.  In order to make sure my patch for fsck fixes this properly I needed
to be able to corrupt an inode like this, which is what this patch is for.
Eventually I want to extend this to corrupt everything so we can integrate tests
into btrfs-progs to run btrfsck against to make sure we don't regress on fixing
things with 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