Btrfs-progs: add an option to btrfs-image to walk the trees
authorJosef Bacik <jbacik@fusionio.com>
Thu, 28 Mar 2013 14:26:09 +0000 (10:26 -0400)
committerDavid Sterba <dsterba@suse.cz>
Tue, 23 Apr 2013 16:56:26 +0000 (18:56 +0200)
commit1ed8193d19413dfa12ad069fe3458864e144297c
treedf81d1189bc544009f5441ae98627aac0d2d5c49
parent1997b9dc79829ee50d97a47bd4ec5ec58cc99238
Btrfs-progs: add an option to btrfs-image to walk the trees

When working with a user with a broken file system I noticed I wasn't able to
read some of the blocks properly from the restored image.  This is because his
extent tree was corrupt and was missing references to some of the blocks, which
means they weren't copied into the image when he generated it.  So add a -w
option which will walk all of the trees manually and copy them into the image.
This way we can run fsck against a complete file system image and fix any bugs
in fsck.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
btrfs-image.c
man/btrfs-image.8.in