summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorRakesh Pandit <rakesh@tuxera.com>2014-03-05 02:12:23 +0200
committerChris Mason <clm@fb.com>2014-03-21 06:23:33 -0700
commitafb7de0da23676a37b2f28ced315889541591f69 (patch)
tree8e518768b6df564a693654ea1b7f603b53532664 /man
parent12b727a48619ffb78ff32b7aa8d375730182d3e3 (diff)
Btrfs-progs: remove unused variable and update btrfs-image man page
Remove unused variable in btrfs-image.c (update_super) and update man page documentation about -r option. Running btrfsck on a restored image produces missing chunk information. This is because by default, btrfs-image fixes up chunk tree to use 1 stripe pointing to the primary device. This in turns results in btrfsck making some noise. $ ./mkfs.btrfs /dev/sdb2 -f $ ./btrfs-image /dev/sdb2 btrfs_image_output $ ./btrfs-image -r btrfs_image_output disk-image $ ./btrfsck disk-image Device extent[1, 29360128, 8388608] didn't find the relative chunk. Device extent[1, 1111490560, 1073741824] didn't find the relative chunk. Ideally btfsck should be updated to reflect this default behavior and not through these messages, but it isn't harmful and can be done later. Signed-off-by: Rakesh Pandit <rakesh@tuxera.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'man')
-rw-r--r--man/btrfs-image.8.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/man/btrfs-image.8.in b/man/btrfs-image.8.in
index d5ba594a..3f51f3f3 100644
--- a/man/btrfs-image.8.in
+++ b/man/btrfs-image.8.in
@@ -17,7 +17,10 @@ is the image file that btrfs-image creates. When used with \fB-r\fP option,
.SH OPTIONS
.TP
\fB\-r\fP
-restore metadump image.
+Restore metadump image. By default, this fixes super's chunk tree, by
+using 1 stripe pointing to primary device, so that file system can be
+restored by running tree log reply if possible. To restore without
+changing number of stripes in chunk tree check \fB-o\fP option.
.TP
\fB\-c\fR \fIvalue\fP
compression level (0 ~ 9).