From: Keith Busch Date: Wed, 26 Oct 2016 19:41:29 +0000 (-0400) Subject: Document timeout value usage X-Git-Tag: v1.0~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=102327639ee09ad8437b7e9d3ccb824f6f1deacd;p=users%2Fsagi%2Fnvme-cli.git Document timeout value usage Add to man page and clarify value is in milliseconds. Signed-off-by: Keith Busch --- diff --git a/Documentation/nvme-format.1 b/Documentation/nvme-format.1 index fbde4b88..a161c0bb 100644 --- a/Documentation/nvme-format.1 +++ b/Documentation/nvme-format.1 @@ -2,12 +2,12 @@ .\" Title: nvme-format .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 -.\" Date: 10/21/2016 +.\" Date: 10/26/2016 .\" Manual: NVMe Manual .\" Source: NVMe .\" Language: English .\" -.TH "NVME\-FORMAT" "1" "10/21/2016" "NVMe" "NVMe Manual" +.TH "NVME\-FORMAT" "1" "10/26/2016" "NVMe" "NVMe Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -39,6 +39,7 @@ nvme-format \- Format an NVMe device [\-\-pi= | \-i ] [\-\-ms= | \-m ] [\-\-reset | \-r ] + [\-\-timeout | \-t ] .fi .SH "DESCRIPTION" .sp @@ -157,6 +158,11 @@ Metadata Settings: This field is set to \(oq1\(cq if the metadata is transferred .RS 4 Issue a reset after successful format\&. Must use the character device for this\&. .RE +.PP +\-t , \-\-timeout= +.RS 4 +Override default timeout value\&. In milliseconds\&. +.RE .SH "EXAMPLES" .sp .RS 4 diff --git a/Documentation/nvme-format.html b/Documentation/nvme-format.html index e047511e..f20e2427 100644 --- a/Documentation/nvme-format.html +++ b/Documentation/nvme-format.html @@ -752,7 +752,8 @@ nvme-format(1) Manual Page [--pil=<pil> | -p <pil>] [--pi=<pi> | -i <pi>] [--ms=<ms> | -m <ms>] - [--reset | -r ] + [--reset | -r ] + [--timeout | -t ]
@@ -946,6 +947,17 @@ cellspacing="0" cellpadding="4"> device for this.

+
+-t <timeout> +
+
+--timeout=<timeout> +
+
+

+ Override default timeout value. In milliseconds. +

+
@@ -985,7 +997,7 @@ information:

diff --git a/Documentation/nvme-format.txt b/Documentation/nvme-format.txt index fee7799a..a74a0dcb 100644 --- a/Documentation/nvme-format.txt +++ b/Documentation/nvme-format.txt @@ -15,6 +15,7 @@ SYNOPSIS [--pi= | -i ] [--ms= | -m ] [--reset | -r ] + [--timeout | -t ] DESCRIPTION ----------- @@ -107,6 +108,10 @@ cryptographically. This is accomplished by deleting the encryption key. Issue a reset after successful format. Must use the character device for this. +-t :: +--timeout=:: + Override default timeout value. In milliseconds. + EXAMPLES -------- * Format the device using all defaults: diff --git a/nvme.c b/nvme.c index 220a57a8..a9e78aae 100644 --- a/nvme.c +++ b/nvme.c @@ -1456,7 +1456,7 @@ static int format(int argc, char **argv, struct command *cmd, struct plugin *plu const char *pi = "[0-3]: protection info off/Type 1/Type 2/Type 3"; const char *ms = "[0-1]: extended format off/on"; const char *reset = "Automatically reset the controller after successful format"; - const char *timeout = "timeout value"; + const char *timeout = "timeout value, in milliseconds"; int err; struct config { @@ -2563,7 +2563,7 @@ static int passthru(int argc, char **argv, int ioctl_cmd, const char *desc, stru const char *namespace_id = "desired namespace"; const char *data_len = "data I/O length (bytes)"; const char *metadata_len = "metadata seg. length (bytes)"; - const char *timeout = "timeout value"; + const char *timeout = "timeout value, in milliseconds"; const char *cdw2 = "command dword 2 value"; const char *cdw3 = "command dword 3 value"; const char *cdw10 = "command dword 10 value";