From 1ed8193d19413dfa12ad069fe3458864e144297c Mon Sep 17 00:00:00 2001 From: Josef Bacik Date: Thu, 28 Mar 2013 10:26:09 -0400 Subject: 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 --- man/btrfs-image.8.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'man') diff --git a/man/btrfs-image.8.in b/man/btrfs-image.8.in index b738f672..7e0e3b0b 100644 --- a/man/btrfs-image.8.in +++ b/man/btrfs-image.8.in @@ -28,6 +28,11 @@ number of threads (1 ~ 32) to be used to process the image dump or restore. \fB\-o\fP use the old restore method, this does not fixup the chunk tree so the restored file system will not be able to be mounted. +.TP +\fB\-w\fP +Walk all the trees manually and copy any blocks that are referenced. Use this +option if your extent tree is corrupted to make sure that all of the metadata is +captured. .SH AVAILABILITY .B btrfs-image is part of btrfs-progs. Btrfs is currently under heavy development, -- cgit v1.2.3