summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>2014-06-19 09:46:03 +0800
committerDavid Sterba <dsterba@suse.cz>2014-08-22 14:43:10 +0200
commit729c0da10338caba5be7c22b842610223d661883 (patch)
tree4041c655f4c939c8601b90cc78108b76681324ab
parent16668ba6da72b9e90bdd0c89188db7137a861657 (diff)
btrfs-progs: update manpage for btrfs-image with -m option added
The btrfs-image support multiple devices with -m specified. Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--Documentation/btrfs-image.txt3
-rw-r--r--btrfs-image.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/btrfs-image.txt b/Documentation/btrfs-image.txt
index 7ee820c2..155194a1 100644
--- a/Documentation/btrfs-image.txt
+++ b/Documentation/btrfs-image.txt
@@ -48,6 +48,9 @@ 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.
+-m::
+Restore for multiple devices, more than 1 device should be provided.
+
EXIT STATUS
-----------
*btrfs-image* will return 0 if no error happened.
diff --git a/btrfs-image.c b/btrfs-image.c
index 3ca3b400..c9dd0232 100644
--- a/btrfs-image.c
+++ b/btrfs-image.c
@@ -2446,6 +2446,7 @@ static void print_usage(void)
fprintf(stderr, "\t-o \tdon't mess with the chunk tree when restoring\n");
fprintf(stderr, "\t-s \tsanitize file names, use once to just use garbage, use twice if you want crc collisions\n");
fprintf(stderr, "\t-w \twalk all trees instead of using extent tree, do this if your extent tree is broken\n");
+ fprintf(stderr, "\t-m \trestore for multiple devices\n");
exit(1);
}