btrfs-progs: replace: convert help text to option formatter

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-02-22 01:37:18 +01:00
parent e9614be78e
commit 7b1e2e3b88

View File

@ -105,18 +105,17 @@ static const char *const cmd_replace_start_usage[] = {
"from the system, you have to use the <devid> parameter format.", "from the system, you have to use the <devid> parameter format.",
"The <targetdev> needs to be same size or larger than the <srcdev>.", "The <targetdev> needs to be same size or larger than the <srcdev>.",
"", "",
"-r only read from <srcdev> if no other zero-defect mirror exists", OPTLINE("-r", "only read from <srcdev> if no other zero-defect mirror exists "
" (enable this if your drive has lots of read errors, the access", "(enable this if your drive has lots of read errors, the access "
" would be very slow)", "would be very slow)"),
"-f force using and overwriting <targetdev> even if it looks like", OPTLINE("-f", "force using and overwriting <targetdev> even if it looks like "
" containing a valid btrfs filesystem. A valid filesystem is", "containing a valid btrfs filesystem. A valid filesystem is "
" assumed if a btrfs superblock is found which contains a", "assumed if a btrfs superblock is found which contains a "
" correct checksum. Devices which are currently mounted are", "correct checksum. Devices which are currently mounted are "
" never allowed to be used as the <targetdev>", "never allowed to be used as the <targetdev>"),
"-B do not background", OPTLINE("-B", "do not background"),
"--enqueue wait if there's another exclusive operation running,", OPTLINE("--enqueue", "wait if there's another exclusive operation running, otherwise continue"),
" otherwise continue", OPTLINE("-K|--nodiscard", "do not perform whole device TRIM"),
"-K|--nodiscard do not perform whole device TRIM",
NULL NULL
}; };
@ -369,8 +368,7 @@ static const char *const cmd_replace_status_usage[] = {
"btrfs replace status [-1] <mount_point>", "btrfs replace status [-1] <mount_point>",
"Print status and progress information of a running device replace operation", "Print status and progress information of a running device replace operation",
"", "",
"-1 print once instead of print continuously until the replace", OPTLINE("-1", "print once instead of print continuously until the replace operation finishes (or is canceled)"),
" operation finishes (or is canceled)",
NULL NULL
}; };