From 92dfdc78efa0c7b8ed79064540e47c8592ba1783 Mon Sep 17 00:00:00 2001 From: mav Date: Wed, 31 Jul 2019 04:19:53 +0000 Subject: [PATCH] Tune some commands desctiption. MFC after: 2 weeks --- sbin/nvmecontrol/devlist.c | 2 +- sbin/nvmecontrol/firmware.c | 2 +- sbin/nvmecontrol/format.c | 16 ++++++++-------- sbin/nvmecontrol/perftest.c | 2 +- sbin/nvmecontrol/reset.c | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sbin/nvmecontrol/devlist.c b/sbin/nvmecontrol/devlist.c index 03c4423bf1b..432e3d8ce90 100644 --- a/sbin/nvmecontrol/devlist.c +++ b/sbin/nvmecontrol/devlist.c @@ -53,7 +53,7 @@ static cmd_fn_t devlist; static struct cmd devlist_cmd = { .name = "devlist", .fn = devlist, - .descr = "Display a list of NVMe controllers and namespaces." + .descr = "List NVMe controllers and namespaces" }; CMD_COMMAND(devlist_cmd); diff --git a/sbin/nvmecontrol/firmware.c b/sbin/nvmecontrol/firmware.c index ba04bdb81cc..ca988ba68b5 100644 --- a/sbin/nvmecontrol/firmware.c +++ b/sbin/nvmecontrol/firmware.c @@ -87,7 +87,7 @@ static const struct args firmware_args[] = { static struct cmd firmware_cmd = { .name = "firmware", .fn = firmware, - .descr = "Download firmware image to controller.", + .descr = "Download firmware image to controller", .ctx_size = sizeof(opt), .opts = firmware_opts, .args = firmware_args, diff --git a/sbin/nvmecontrol/format.c b/sbin/nvmecontrol/format.c index dcc81d974ce..e48ffa5ae65 100644 --- a/sbin/nvmecontrol/format.c +++ b/sbin/nvmecontrol/format.c @@ -76,19 +76,19 @@ static struct options { static const struct opts format_opts[] = { #define OPT(l, s, t, opt, addr, desc) { l, s, t, &opt.addr, desc } OPT("crypto", 'C', arg_none, opt, Cflag, - "Crptographically erase user data by forgetting key"), + "Crptographic erase"), OPT("erase", 'E', arg_none, opt, Eflag, - "Erase user data"), + "User data erase"), OPT("lbaf", 'f', arg_uint32, opt, lbaf, - "Set the LBA Format to apply to the media"), + "LBA Format to apply to the media"), OPT("ms", 'm', arg_uint32, opt, ms, - "Slot to activate and/or download format to"), + "Metadata settings"), OPT("pi", 'p', arg_uint32, opt, pi, - "Slot to activate and/or download format to"), + "Protective information"), OPT("pil", 'l', arg_uint32, opt, pil, - "Slot to activate and/or download format to"), + "Protective information location"), OPT("ses", 's', arg_uint32, opt, ses, - "Slot to activate and/or download format to"), + "Secure erase settings"), { NULL, 0, arg_none, NULL, NULL } }; #undef OPT @@ -101,7 +101,7 @@ static const struct args format_args[] = { static struct cmd format_cmd = { .name = "format", .fn = format, - .descr = "Format/erase one or all the namespaces.", + .descr = "Format/erase one or all the namespaces", .ctx_size = sizeof(opt), .opts = format_opts, .args = format_args, diff --git a/sbin/nvmecontrol/perftest.c b/sbin/nvmecontrol/perftest.c index d84b41c973b..907acbbf49e 100644 --- a/sbin/nvmecontrol/perftest.c +++ b/sbin/nvmecontrol/perftest.c @@ -99,7 +99,7 @@ static const struct args perftest_args[] = { static struct cmd perftest_cmd = { .name = "perftest", .fn = perftest, - .descr = "Perform low-level driver performance testing.", + .descr = "Perform low-level performance testing", .ctx_size = sizeof(opt), .opts = perftest_opts, .args = perftest_args, diff --git a/sbin/nvmecontrol/reset.c b/sbin/nvmecontrol/reset.c index 9552babbab1..40a45d9bb03 100644 --- a/sbin/nvmecontrol/reset.c +++ b/sbin/nvmecontrol/reset.c @@ -69,7 +69,7 @@ reset(const struct cmd *f, int argc, char *argv[]) static struct cmd reset_cmd = { .name = "reset", .fn = reset, - .descr = "Perform a controller-level reset.", + .descr = "Perform a controller-level reset", .args = args, }; -- 2.45.0