btrfs-progs: add shift_items to btrfs-corrupt-block
authorJosef Bacik <jbacik@fb.com>
Fri, 3 Oct 2014 14:38:41 +0000 (10:38 -0400)
committerDavid Sterba <dsterba@suse.cz>
Tue, 14 Oct 2014 09:01:35 +0000 (11:01 +0200)
commit94b2966daf8d3812e4b03da6eca2a5b99302e7ed
tree46efb0abcbfcc891bf3bcd39b5cd3c0a7d7697e4
parent3e944ce89462b7b8623ca0019ea6c5beb5df3c47
btrfs-progs: add shift_items to btrfs-corrupt-block

A user had a corrupted fs where his items where shifted oddly.  This adds the
functionality I needed to btrfs-corrupt-block in order to reproduce this
corruption in order to make fsck fix this sort of problem.  Thanks,

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