mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-08 10:11:16 +00:00
btrfs-progs: move chunk-recover to rescue group
Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
parent
133b1b0377
commit
6ed613854d
1
btrfs.c
1
btrfs.c
@ -248,7 +248,6 @@ static const struct cmd_group btrfs_cmd_group = {
|
|||||||
{ "scrub", cmd_scrub, NULL, &scrub_cmd_group, 0 },
|
{ "scrub", cmd_scrub, NULL, &scrub_cmd_group, 0 },
|
||||||
{ "check", cmd_check, cmd_check_usage, NULL, 0 },
|
{ "check", cmd_check, cmd_check_usage, NULL, 0 },
|
||||||
{ "rescue", cmd_rescue, NULL, &rescue_cmd_group, 0 },
|
{ "rescue", cmd_rescue, NULL, &rescue_cmd_group, 0 },
|
||||||
{ "chunk-recover", cmd_chunk_recover, cmd_chunk_recover_usage, NULL, 0},
|
|
||||||
{ "restore", cmd_restore, cmd_restore_usage, NULL, 0 },
|
{ "restore", cmd_restore, cmd_restore_usage, NULL, 0 },
|
||||||
{ "inspect-internal", cmd_inspect, NULL, &inspect_cmd_group, 0 },
|
{ "inspect-internal", cmd_inspect, NULL, &inspect_cmd_group, 0 },
|
||||||
{ "send", cmd_send, cmd_send_usage, NULL, 0 },
|
{ "send", cmd_send, cmd_send_usage, NULL, 0 },
|
||||||
|
@ -1745,7 +1745,7 @@ fail_rc:
|
|||||||
}
|
}
|
||||||
|
|
||||||
const char * const cmd_chunk_recover_usage[] = {
|
const char * const cmd_chunk_recover_usage[] = {
|
||||||
"btrfs chunk-recover [options] <device>",
|
"btrfs rescue chunk-recover [options] <device>",
|
||||||
"Recover the chunk tree by scanning the devices one by one.",
|
"Recover the chunk tree by scanning the devices one by one.",
|
||||||
"",
|
"",
|
||||||
"-y Assume an answer of `yes' to all questions",
|
"-y Assume an answer of `yes' to all questions",
|
||||||
|
@ -27,6 +27,7 @@ static const char * const rescue_cmd_group_usage[] = {
|
|||||||
|
|
||||||
const struct cmd_group rescue_cmd_group = {
|
const struct cmd_group rescue_cmd_group = {
|
||||||
rescue_cmd_group_usage, NULL, {
|
rescue_cmd_group_usage, NULL, {
|
||||||
|
{ "chunk-recover", cmd_chunk_recover, cmd_chunk_recover_usage, NULL, 0},
|
||||||
{ 0, 0, 0, 0, 0 }
|
{ 0, 0, 0, 0, 0 }
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -69,9 +69,7 @@ btrfs \- control a btrfs filesystem
|
|||||||
.PP
|
.PP
|
||||||
\fBbtrfs\fP \fBcheck\fP [\fIoptions\fP] \fI<device>\fP
|
\fBbtrfs\fP \fBcheck\fP [\fIoptions\fP] \fI<device>\fP
|
||||||
.PP
|
.PP
|
||||||
\fBbtrfs\fP \fBrescue\fP [\fIoptions\fP] \fI<path>\fP
|
\fBbtrfs\fP \fBrescue chunk-recover\fP [\fIoptions\fP] \fI<path>\fP
|
||||||
.PP
|
|
||||||
\fBbtrfs\fP \fBchunk-recover\fP [\fIoptions\fP] \fI<device>\fP
|
|
||||||
.PP
|
.PP
|
||||||
\fBbtrfs\fP \fBrestore\fP [\fIoptions\fP] \fI<device>\fP
|
\fBbtrfs\fP \fBrestore\fP [\fIoptions\fP] \fI<device>\fP
|
||||||
.PP
|
.PP
|
||||||
@ -504,11 +502,7 @@ create a new extent tree.
|
|||||||
.RE
|
.RE
|
||||||
.TP
|
.TP
|
||||||
|
|
||||||
\fBrescue\fR [\fIoptions\fP] <path>\fR
|
\fBrescue chunk-recover\fR [\fIoptions\fP] <device>\fR
|
||||||
Rescue toolbox.
|
|
||||||
.TP
|
|
||||||
|
|
||||||
\fBchunk-recover\fR [\fIoptions\fP] <device>\fR
|
|
||||||
Recover the chunk tree by scanning the devices one by one.
|
Recover the chunk tree by scanning the devices one by one.
|
||||||
.RS
|
.RS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user