summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-03-28 10:26:09 -0400
committerDavid Sterba <dsterba@suse.cz>2013-04-23 18:56:26 +0200
commit1ed8193d19413dfa12ad069fe3458864e144297c (patch)
treedf81d1189bc544009f5441ae98627aac0d2d5c49 /man
parent1997b9dc79829ee50d97a47bd4ec5ec58cc99238 (diff)
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>
Diffstat (limited to 'man')
-rw-r--r--man/btrfs-image.8.in5
1 files changed, 5 insertions, 0 deletions
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,