Add to man page and clarify value is in milliseconds.
Signed-off-by: Keith Busch <keith.busch@intel.com>
.\" Title: nvme-format
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
-.\" 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
.\" -----------------------------------------------------------------
[\-\-pi=<pi> | \-i <pi>]
[\-\-ms=<ms> | \-m <ms>]
[\-\-reset | \-r ]
+ [\-\-timeout | \-t ]
.fi
.SH "DESCRIPTION"
.sp
.RS 4
Issue a reset after successful format\&. Must use the character device for this\&.
.RE
+.PP
+\-t <timeout>, \-\-timeout=<timeout>
+.RS 4
+Override default timeout value\&. In milliseconds\&.
+.RE
.SH "EXAMPLES"
.sp
.RS 4
[--pil=<pil> | -p <pil>]\r
[--pi=<pi> | -i <pi>]\r
[--ms=<ms> | -m <ms>]\r
- [--reset | -r ]</pre>\r
+ [--reset | -r ]\r
+ [--timeout | -t ]</pre>\r
<div class="attribution">\r
</div></div>\r
</div>\r
device for this.\r
</p>\r
</dd>\r
+<dt class="hdlist1">\r
+-t <timeout>\r
+</dt>\r
+<dt class="hdlist1">\r
+--timeout=<timeout>\r
+</dt>\r
+<dd>\r
+<p>\r
+ Override default timeout value. In milliseconds.\r
+</p>\r
+</dd>\r
</dl></div>\r
</div>\r
</div>\r
<div id="footnotes"><hr /></div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2016-09-22 12:09:58 EDT\r
+Last updated 2016-10-26 15:41:15 EDT\r
</div>\r
</div>\r
</body>\r
[--pi=<pi> | -i <pi>]
[--ms=<ms> | -m <ms>]
[--reset | -r ]
+ [--timeout | -t ]
DESCRIPTION
-----------
Issue a reset after successful format. Must use the character
device for this.
+-t <timeout>::
+--timeout=<timeout>::
+ Override default timeout value. In milliseconds.
+
EXAMPLES
--------
* Format the device using all defaults:
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 {
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";