Tune some commands desctiption.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2019-07-31 04:19:53 +00:00
parent 628d03169e
commit e843651ba0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350462
5 changed files with 12 additions and 12 deletions

View File

@ -53,7 +53,7 @@ static cmd_fn_t devlist;
static struct cmd devlist_cmd = { static struct cmd devlist_cmd = {
.name = "devlist", .name = "devlist",
.fn = devlist, .fn = devlist,
.descr = "Display a list of NVMe controllers and namespaces." .descr = "List NVMe controllers and namespaces"
}; };
CMD_COMMAND(devlist_cmd); CMD_COMMAND(devlist_cmd);

View File

@ -87,7 +87,7 @@ static const struct args firmware_args[] = {
static struct cmd firmware_cmd = { static struct cmd firmware_cmd = {
.name = "firmware", .name = "firmware",
.fn = firmware, .fn = firmware,
.descr = "Download firmware image to controller.", .descr = "Download firmware image to controller",
.ctx_size = sizeof(opt), .ctx_size = sizeof(opt),
.opts = firmware_opts, .opts = firmware_opts,
.args = firmware_args, .args = firmware_args,

View File

@ -76,19 +76,19 @@ static struct options {
static const struct opts format_opts[] = { static const struct opts format_opts[] = {
#define OPT(l, s, t, opt, addr, desc) { l, s, t, &opt.addr, desc } #define OPT(l, s, t, opt, addr, desc) { l, s, t, &opt.addr, desc }
OPT("crypto", 'C', arg_none, opt, Cflag, OPT("crypto", 'C', arg_none, opt, Cflag,
"Crptographically erase user data by forgetting key"), "Crptographic erase"),
OPT("erase", 'E', arg_none, opt, Eflag, OPT("erase", 'E', arg_none, opt, Eflag,
"Erase user data"), "User data erase"),
OPT("lbaf", 'f', arg_uint32, opt, lbaf, 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, OPT("ms", 'm', arg_uint32, opt, ms,
"Slot to activate and/or download format to"), "Metadata settings"),
OPT("pi", 'p', arg_uint32, opt, pi, OPT("pi", 'p', arg_uint32, opt, pi,
"Slot to activate and/or download format to"), "Protective information"),
OPT("pil", 'l', arg_uint32, opt, pil, 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, OPT("ses", 's', arg_uint32, opt, ses,
"Slot to activate and/or download format to"), "Secure erase settings"),
{ NULL, 0, arg_none, NULL, NULL } { NULL, 0, arg_none, NULL, NULL }
}; };
#undef OPT #undef OPT
@ -101,7 +101,7 @@ static const struct args format_args[] = {
static struct cmd format_cmd = { static struct cmd format_cmd = {
.name = "format", .name = "format",
.fn = format, .fn = format,
.descr = "Format/erase one or all the namespaces.", .descr = "Format/erase one or all the namespaces",
.ctx_size = sizeof(opt), .ctx_size = sizeof(opt),
.opts = format_opts, .opts = format_opts,
.args = format_args, .args = format_args,

View File

@ -99,7 +99,7 @@ static const struct args perftest_args[] = {
static struct cmd perftest_cmd = { static struct cmd perftest_cmd = {
.name = "perftest", .name = "perftest",
.fn = perftest, .fn = perftest,
.descr = "Perform low-level driver performance testing.", .descr = "Perform low-level performance testing",
.ctx_size = sizeof(opt), .ctx_size = sizeof(opt),
.opts = perftest_opts, .opts = perftest_opts,
.args = perftest_args, .args = perftest_args,

View File

@ -69,7 +69,7 @@ reset(const struct cmd *f, int argc, char *argv[])
static struct cmd reset_cmd = { static struct cmd reset_cmd = {
.name = "reset", .name = "reset",
.fn = reset, .fn = reset,
.descr = "Perform a controller-level reset.", .descr = "Perform a controller-level reset",
.args = args, .args = args,
}; };