]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Pre-fill user buffers on passthrough commands
authorKeith Busch <keith.busch@intel.com>
Sat, 14 May 2016 17:07:53 +0000 (13:07 -0400)
committerKeith Busch <keith.busch@intel.com>
Sat, 14 May 2016 17:07:53 +0000 (13:07 -0400)
Reported that user data may be shorter than the buffer length, and need
to pad the data with a fixed byte value.

Also requested that we provied a way to prefill data in buffers so we
can know if a device is corrupting memory.

Signed-off-by: Keith Busch <keith.busch@intel.com>
45 files changed:
Documentation/nvme-admin-passthru.1
Documentation/nvme-admin-passthru.html
Documentation/nvme-admin-passthru.txt
Documentation/nvme-attach-ns.1
Documentation/nvme-compare.1
Documentation/nvme-create-ns.1
Documentation/nvme-delete-ns.1
Documentation/nvme-detach-ns.1
Documentation/nvme-dsm.1
Documentation/nvme-error-log.1
Documentation/nvme-flush.1
Documentation/nvme-format.1
Documentation/nvme-fw-activate.1
Documentation/nvme-fw-download.1
Documentation/nvme-fw-log.1
Documentation/nvme-get-feature.1
Documentation/nvme-get-log.1
Documentation/nvme-get-ns-id.1
Documentation/nvme-help.1
Documentation/nvme-id-ctrl.1
Documentation/nvme-id-ns.1
Documentation/nvme-io-passthru.1
Documentation/nvme-io-passthru.html
Documentation/nvme-io-passthru.txt
Documentation/nvme-list-ctrl.1
Documentation/nvme-list-ns.1
Documentation/nvme-list.1
Documentation/nvme-read.1
Documentation/nvme-reset.1
Documentation/nvme-resv-acquire.1
Documentation/nvme-resv-register.1
Documentation/nvme-resv-release.1
Documentation/nvme-resv-report.1
Documentation/nvme-security-recv.1
Documentation/nvme-security-recv.html
Documentation/nvme-security-send.1
Documentation/nvme-set-feature.1
Documentation/nvme-show-regs.1
Documentation/nvme-smart-log.1
Documentation/nvme-subsystem-reset.1
Documentation/nvme-write-uncor.1
Documentation/nvme-write-zeroes.1
Documentation/nvme-write.1
Documentation/nvme.1
nvme.c

index 7be84bc4900f76ebf9c7d4c327021ca965ca7da2..94c8b6235a093a68bcf039d4a2c6aa9da28e4da3 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-admin-passthru
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ADMIN\-PASSTHR" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-ADMIN\-PASSTHR" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
@@ -44,6 +44,7 @@ nvme-admin-passthru \- Submit an arbitrary admin command, return results
                 [\-\-timeout=<to> | \-t <to>]
                 [\-\-show\-command | \-\-dry\-run | \-s]
                 [\-\-raw\-binary | \-b]
+                [\-\-prefill=<prefill> | \-p <prefill>]
 .fi
 .SH "DESCRIPTION"
 .sp
@@ -108,6 +109,11 @@ Do not actually send the command; print out the command that would be sent\&.
 .RS 4
 Print the raw returned buffer to stdout if the command returns a structure\&.
 .RE
+.PP
+\-p, \-\-prefill
+.RS 4
+Prefill the buffer with a predetermined byte value\&. Defaults to 0\&. This may be useful if the data you are writing is shorter than the required buffer, and you need to pad it with a known value\&. It may also be useful if you need to confirm if a device is overwriting a buffer for a data\-in command\&.
+.RE
 .SH "EXAMPLES"
 .sp
 .RS 4
index a955088d586f6278a897158661099d810054438c..b42fd4f7b27c194348f5364f6e494fdd6c955522 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
 <head>\r
 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />\r
-<meta name="generator" content="AsciiDoc 8.6.7" />\r
+<meta name="generator" content="AsciiDoc 8.6.8" />\r
 <title>nvme-admin-passthru(1)</title>\r
 <style type="text/css">\r
 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */\r
@@ -87,11 +87,15 @@ ul, ol, li > p {
 ul > li     { color: #aaa; }\r
 ul > li > * { color: black; }\r
 \r
-pre {\r
+.monospaced, code, pre {\r
+  font-family: "Courier New", Courier, monospace;\r
+  font-size: inherit;\r
+  color: navy;\r
   padding: 0;\r
   margin: 0;\r
 }\r
 \r
+\r
 #author {\r
   color: #527bbd;\r
   font-weight: bold;\r
@@ -415,12 +419,6 @@ div.unbreakable { page-break-inside: avoid; }
  *\r
  * */\r
 \r
-tt {\r
-  font-family: "Courier New", Courier, monospace;\r
-  font-size: inherit;\r
-  color: navy;\r
-}\r
-\r
 div.tableblock {\r
   margin-top: 1.0em;\r
   margin-bottom: 1.5em;\r
@@ -435,7 +433,7 @@ thead, p.table.header {
 p.table {\r
   margin-top: 0;\r
 }\r
-/* Because the table frame attribute is overridden by CSS in most browsers. */\r
+/* Because the table frame attribute is overriden by CSS in most browsers. */\r
 div.tableblock > table[frame="void"] {\r
   border-style: none;\r
 }\r
@@ -454,12 +452,6 @@ div.tableblock > table[frame="vsides"] {
  *\r
  * */\r
 \r
-.monospaced {\r
-  font-family: "Courier New", Courier, monospace;\r
-  font-size: inherit;\r
-  color: navy;\r
-}\r
-\r
 table.tableblock {\r
   margin-top: 1.0em;\r
   margin-bottom: 1.5em;\r
@@ -539,6 +531,8 @@ body.manpage div.sectionbody {
 @media print {\r
   body.manpage div#toc { display: none; }\r
 }\r
+\r
+\r
 </style>\r
 <script type="text/javascript">\r
 /*<![CDATA[*/\r
@@ -763,7 +757,8 @@ nvme-admin-passthru(1) Manual Page
                 [--read | -r ] [--write | -w]\r
                 [--timeout=&lt;to&gt; | -t &lt;to&gt;]\r
                 [--show-command | --dry-run | -s]\r
-                [--raw-binary | -b]</pre>\r
+                [--raw-binary | -b]\r
+                [--prefill=&lt;prefill&gt; | -p &lt;prefill&gt;]</pre>\r
 <div class="attribution">\r
 </div></div>\r
 </div>\r
@@ -921,6 +916,21 @@ printed to stdout for another program to parse.</p></div>
         a structure.\r
 </p>\r
 </dd>\r
+<dt class="hdlist1">\r
+-p\r
+</dt>\r
+<dt class="hdlist1">\r
+--prefill\r
+</dt>\r
+<dd>\r
+<p>\r
+        Prefill the buffer with a predetermined byte value. Defaults to 0.\r
+        This may be useful if the data you are writing is shorter\r
+        than the required buffer, and you need to pad it with a known\r
+        value. It may also be useful if you need to confirm if a device\r
+        is overwriting a buffer for a data-in command.\r
+</p>\r
+</dd>\r
 </dl></div>\r
 </div>\r
 </div>\r
@@ -937,7 +947,7 @@ The following will run the admin command with opcode=6 and cdw10=1, which
 </p>\r
 <div class="listingblock">\r
 <div class="content">\r
-<pre><tt># nvme admin-passthru /dev/nvme0 --opcode=06 --data-len=4096 --cdw10=1 -r</tt></pre>\r
+<pre><code># nvme admin-passthru /dev/nvme0 --opcode=06 --data-len=4096 --cdw10=1 -r</code></pre>\r
 </div></div>\r
 </li>\r
 <li>\r
@@ -946,7 +956,7 @@ Or if you want to save that structure to a file:
 </p>\r
 <div class="listingblock">\r
 <div class="content">\r
-<pre><tt># nvme admin-passthru /dev/nvme0 --opcode=06 --data-len=4096 --cdw10=1 -r -b &gt; id_ns.raw</tt></pre>\r
+<pre><code># nvme admin-passthru /dev/nvme0 --opcode=06 --data-len=4096 --cdw10=1 -r -b &gt; id_ns.raw</code></pre>\r
 </div></div>\r
 </li>\r
 </ul></div>\r
@@ -962,7 +972,7 @@ Or if you want to save that structure to a file:
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 2016-02-26 08:23:20 MST\r
+Last updated 2016-05-14 13:07:08 EDT\r
 </div>\r
 </div>\r
 </body>\r
index a107a04ee255e819491c0d2c3e809d736f84120b..df1c0facc5891fd5265d926a1009ac394e4938da 100644 (file)
@@ -20,6 +20,7 @@ SYNOPSIS
                [--timeout=<to> | -t <to>]
                [--show-command | --dry-run | -s]
                [--raw-binary | -b]
+               [--prefill=<prefill> | -p <prefill>]
 
 DESCRIPTION
 -----------
@@ -91,6 +92,14 @@ OPTIONS
        Print the raw returned buffer to stdout if the command returns
        a structure.
 
+-p::
+--prefill::
+       Prefill the buffer with a predetermined byte value. Defaults to 0.
+       This may be useful if the data you are writing is shorter
+       than the required buffer, and you need to pad it with a known
+       value. It may also be useful if you need to confirm if a device
+       is overwriting a buffer for a data-in command.
+
 EXAMPLES
 --------
 * The following will run the admin command with opcode=6 and cdw10=1, which
index fc77fe6e36bdf9fed99985321dd0bb4cbc3cf0f9..0518fcc6bbc3d9b63851b4da2bc07fb8bc3b9596 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-attach-ns
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ATTACH\-NS" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-ATTACH\-NS" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 5af36e032afbf40fa3c8c5d99fc46c78b318df4f..d089e4f65078ec0535addd59a8b5d3c21d205810 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-compare
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-COMPARE" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-COMPARE" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 0aaa7a12a02d8e50da04f00d2fa9875f0c59f649..0965ed76347b06fc73600ec2129d52c1b69de997 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-create-ns
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-CREATE\-NS" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-CREATE\-NS" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index d0ca779dfcbb2123d88e29744e9557b840f32061..cef009979b367820978858311b63999406ec0d31 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-id-ns
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 10/21/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ID\-NS" "1" "10/21/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-ID\-NS" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 8539ecc97bdda10423108e0f6f014feb5a214878..b33aaea48ad62adba1a29918936ac488f6cfab7d 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-detach-ns
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-DETACH\-NS" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-DETACH\-NS" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 4af7456294590ac16f6034a6ff3f58d3dd365fa4..f64619d84bd3e9188970d43d804ffcbf21aad651 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-dsm
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-DSM" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-DSM" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index fb83646875c3aa83d892575fa6d2006fb74ba9c0..3f3dccb0667e43e4d78d4560f05b4b1e52b49e54 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-error-log
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ERROR\-LOG" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-ERROR\-LOG" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index b2f74fd3d80dbfdf88ea4120d6fbb6a98d9199ce..8be2f5bba283b774f80627a7e343cdea69439fb8 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-flush
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-FLUSH" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-FLUSH" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index c56aca70a86bfbf496a632fd2b9e6b53d92eccbf..e69f2bcbb3bc2e476d08dd609298b520bb7ca97c 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-format
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-FORMAT" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-FORMAT" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index c4b606b340ebfcc540b5b3f9cdefcd86f09daf3d..a910c265aecbe178f866299b6ed4d2fd4e7e66f8 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-fw-activate
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-FW\-ACTIVATE" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-FW\-ACTIVATE" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index e38900c7c1394aa9c32bff0f61f51a3ea45056f2..631d987ad8b9bf7eb825e0142613a3ffe792ff18 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-fw-download
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-FW\-DOWNLOAD" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-FW\-DOWNLOAD" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index fe2004df4eff8d1638b75563051eb760035162eb..fc316e8a7ccbccff8fd6baaabe1cd15db82ef70d 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-fw-log
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-FW\-LOG" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-FW\-LOG" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 09b60ba105dddcdd8c74f4ae4aa7275061a4f57f..91c6a5167010066d166822f3fc4040ec0a1c7054 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-get-feature
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-GET\-FEATURE" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-GET\-FEATURE" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 4b9fdeb3bfc4ac3865c4953e52098a91f4b7f51c..b9d51c5fe8824231391b068034ab852a2b476496 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-get-log
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-GET\-LOG" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-GET\-LOG" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 3ba4ba3a168b01a1adfe891b9c02fcde7ac2fdb1..579de3d6ed91bfe5e508a0f18a88755480437c4e 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-get-ns-id
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-GET\-NS\-ID" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-GET\-NS\-ID" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 588ab7f24b77e0006954c746bd288ec1fde73816..3b44addbadba1e1ac8ae7778b09b300127659216 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-help
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-HELP" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-HELP" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index a6b98ad1b61440c71a4baef28d67770a56392a16..37e23936af7ba577d9df1947d6d20155e12b08fd 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-id-ctrl
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ID\-CTRL" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-ID\-CTRL" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 5e04d73f2b4431f4bb4d8437d3fc0de0c506379c..d2098fd8295398f0e4ff5baeb94d17e10abbc4b2 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-id-ns
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 03/18/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ID\-NS" "1" "03/18/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-ID\-NS" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index e53283a26c26c33510e9bd650edd7cdf5c8d30d8..352e603c63387363d88013a98d9312cae4c19ba2 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-io-passthru
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-IO\-PASSTHRU" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-IO\-PASSTHRU" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
@@ -45,6 +45,7 @@ nvme-io-passthru \- Submit an arbitrary io command, return results
                 [\-\-timeout=<to> | \-t <to>]
                 [\-\-show\-command | \-\-dry\-run | \-s]
                 [\-\-raw\-binary | \-b]
+                [\-\-prefill=<prefill> | \-p <prefill>]
 .fi
 .SH "DESCRIPTION"
 .sp
@@ -115,6 +116,11 @@ Do not actually send the command\&.
 .RS 4
 Print the raw returned buffer to stdout if the command returns data or a structure\&.
 .RE
+.PP
+\-p <prefill>, \-\-prefill <prefill>
+.RS 4
+Prefill the buffer with a predetermined byte value\&. Defaults to 0\&. This may be useful if the data you are writing is shorter than the required buffer, and you need to pad it with a known value\&. It may also be useful if you need to confirm if a device is overwriting a buffer on a data\-in command\&.
+.RE
 .SH "EXAMPLES"
 .sp
 nvme io\-passthru /dev/nvme0n1 \-\-opcode=2 \-\-namespace\-id=1 \-\-data\-len=4096 \-\-read \-\-cdw10=0 \-\-cdw11=0 \-\-cdw12=0x70000 \-\-raw\-binary
index 5dc5eed4129c7efbf2af1b247aae304208d5c209..fadfbfdec6e0cbec290f33651b3d19dc9f5bc52d 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
 <head>\r
 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />\r
-<meta name="generator" content="AsciiDoc 8.6.7" />\r
+<meta name="generator" content="AsciiDoc 8.6.8" />\r
 <title>nvme-io-passthru(1)</title>\r
 <style type="text/css">\r
 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */\r
@@ -87,11 +87,15 @@ ul, ol, li > p {
 ul > li     { color: #aaa; }\r
 ul > li > * { color: black; }\r
 \r
-pre {\r
+.monospaced, code, pre {\r
+  font-family: "Courier New", Courier, monospace;\r
+  font-size: inherit;\r
+  color: navy;\r
   padding: 0;\r
   margin: 0;\r
 }\r
 \r
+\r
 #author {\r
   color: #527bbd;\r
   font-weight: bold;\r
@@ -415,12 +419,6 @@ div.unbreakable { page-break-inside: avoid; }
  *\r
  * */\r
 \r
-tt {\r
-  font-family: "Courier New", Courier, monospace;\r
-  font-size: inherit;\r
-  color: navy;\r
-}\r
-\r
 div.tableblock {\r
   margin-top: 1.0em;\r
   margin-bottom: 1.5em;\r
@@ -435,7 +433,7 @@ thead, p.table.header {
 p.table {\r
   margin-top: 0;\r
 }\r
-/* Because the table frame attribute is overridden by CSS in most browsers. */\r
+/* Because the table frame attribute is overriden by CSS in most browsers. */\r
 div.tableblock > table[frame="void"] {\r
   border-style: none;\r
 }\r
@@ -454,12 +452,6 @@ div.tableblock > table[frame="vsides"] {
  *\r
  * */\r
 \r
-.monospaced {\r
-  font-family: "Courier New", Courier, monospace;\r
-  font-size: inherit;\r
-  color: navy;\r
-}\r
-\r
 table.tableblock {\r
   margin-top: 1.0em;\r
   margin-bottom: 1.5em;\r
@@ -539,6 +531,8 @@ body.manpage div.sectionbody {
 @media print {\r
   body.manpage div#toc { display: none; }\r
 }\r
+\r
+\r
 </style>\r
 <script type="text/javascript">\r
 /*<![CDATA[*/\r
@@ -764,7 +758,8 @@ nvme-io-passthru(1) Manual Page
                 [--input-file=&lt;file&gt; | -f &lt;file&gt;]\r
                 [--timeout=&lt;to&gt; | -t &lt;to&gt;]\r
                 [--show-command | --dry-run | -s]\r
-                [--raw-binary | -b]</pre>\r
+                [--raw-binary | -b]\r
+                [--prefill=&lt;prefill&gt; | -p &lt;prefill&gt;]</pre>\r
 <div class="attribution">\r
 </div></div>\r
 </div>\r
@@ -929,6 +924,21 @@ printed to stdout for another program to parse.</p></div>
         data or a structure.\r
 </p>\r
 </dd>\r
+<dt class="hdlist1">\r
+-p &lt;prefill&gt;\r
+</dt>\r
+<dt class="hdlist1">\r
+--prefill &lt;prefill&gt;\r
+</dt>\r
+<dd>\r
+<p>\r
+        Prefill the buffer with a predetermined byte value. Defaults to 0.\r
+        This may be useful if the data you are writing is shorter\r
+        than the required buffer, and you need to pad it with a known\r
+        value. It may also be useful if you need to confirm if a device\r
+        is overwriting a buffer on a data-in command.\r
+</p>\r
+</dd>\r
 </dl></div>\r
 </div>\r
 </div>\r
@@ -948,7 +958,7 @@ printed to stdout for another program to parse.</p></div>
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 2015-02-09 08:30:40 MST\r
+Last updated 2016-05-14 13:06:52 EDT\r
 </div>\r
 </div>\r
 </body>\r
index 08ac19e7f5836d534ac9bdcadde82f9e3459f200..1a6dba2b87b8ed1bd90ddd645712f700ff9b9377 100644 (file)
@@ -21,6 +21,7 @@ SYNOPSIS
                [--timeout=<to> | -t <to>]
                [--show-command | --dry-run | -s]
                [--raw-binary | -b]
+               [--prefill=<prefill> | -p <prefill>]
 
 DESCRIPTION
 -----------
@@ -94,6 +95,14 @@ OPTIONS
        Print the raw returned buffer to stdout if the command returns
        data or a structure.
 
+-p <prefill>::
+--prefill <prefill>::
+       Prefill the buffer with a predetermined byte value. Defaults to 0.
+       This may be useful if the data you are writing is shorter
+       than the required buffer, and you need to pad it with a known
+       value. It may also be useful if you need to confirm if a device
+       is overwriting a buffer on a data-in command.
+
 EXAMPLES
 --------
 
index ebd971e7e7a649dae16f75bb3333691e188b115d..97c616261ae271ee7a7e26507fe353e528b8a331 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-id-ns
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ID\-NS" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-ID\-NS" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index a4138900bf7bed9a54257f10e1deb05394290472..e8811bee8214c69ca6992431e1542a0a032e5c4b 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-id-ns
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ID\-NS" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-ID\-NS" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 2ee59b7dd73ed8454f0b90bd22e43424c7f9bec0..70bc930debe9dce0cf248d4303bc8686288f94b8 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-list
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-LIST" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-LIST" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 04baa68dca21d488e186722a0efea6a161cb3c0e..37d358ef24afae7425b4e65fec5c6dc3ed311b91 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-read
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 10/21/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-READ" "1" "10/21/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-READ" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index b2017a696752424b2155c594e6bbcb45ec6ffcaa..79dd950c41a57eee8d7f2b86b3d8c907606bc6ab 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-reset
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 03/17/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-RESET" "1" "03/17/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-RESET" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index ff09dfe3448e7c3677afdc57f1df6f7136cf1ec4..4f6b2f02097d3b01cc25a70ed4e1949b1330ff4d 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-resv-acquire
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-RESV\-ACQUIRE" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-RESV\-ACQUIRE" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index f0e5f9d9fd3ad3315bd22ab2af222fe087d928e9..99661dae1079ebd468926e3389fcccf22a6cfd5e 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-resv-register
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-RESV\-REGISTER" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-RESV\-REGISTER" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index b1757243a3ecdccbde01bdde36dcb257a341c5e9..08d00d3d8cd5e555ea6c186cdc67f5994e98fede 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-resv-release
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-RESV\-RELEASE" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-RESV\-RELEASE" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 227d5b86cf7fd52459afd9c57c56cd645e4ac18b..0e2ac35c790b37961bdd305addb7a48c0d43f375 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-resv-report
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-RESV\-REPORT" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-RESV\-REPORT" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 291d247a46fa297c3ca7618912ca839847709554..8624926f49ff98e2a927694dd708b0bace8ed41b 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-security-recv
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 03/17/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-SECURITY\-RECV" "1" "03/17/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-SECURITY\-RECV" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 6794e1517e1f7b71fb3bc955a37dfb49f0d760bf..9e2b9cdd96d0c614bc387b68c17dd8064f737799 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
 <head>\r
 <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />\r
-<meta name="generator" content="AsciiDoc 8.6.7" />\r
+<meta name="generator" content="AsciiDoc 8.6.8" />\r
 <title>nvme-security-recv(1)</title>\r
 <style type="text/css">\r
 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */\r
@@ -87,11 +87,15 @@ ul, ol, li > p {
 ul > li     { color: #aaa; }\r
 ul > li > * { color: black; }\r
 \r
-pre {\r
+.monospaced, code, pre {\r
+  font-family: "Courier New", Courier, monospace;\r
+  font-size: inherit;\r
+  color: navy;\r
   padding: 0;\r
   margin: 0;\r
 }\r
 \r
+\r
 #author {\r
   color: #527bbd;\r
   font-weight: bold;\r
@@ -415,12 +419,6 @@ div.unbreakable { page-break-inside: avoid; }
  *\r
  * */\r
 \r
-tt {\r
-  font-family: "Courier New", Courier, monospace;\r
-  font-size: inherit;\r
-  color: navy;\r
-}\r
-\r
 div.tableblock {\r
   margin-top: 1.0em;\r
   margin-bottom: 1.5em;\r
@@ -454,12 +452,6 @@ div.tableblock > table[frame="vsides"] {
  *\r
  * */\r
 \r
-.monospaced {\r
-  font-family: "Courier New", Courier, monospace;\r
-  font-size: inherit;\r
-  color: navy;\r
-}\r
-\r
 table.tableblock {\r
   margin-top: 1.0em;\r
   margin-bottom: 1.5em;\r
@@ -539,6 +531,8 @@ body.manpage div.sectionbody {
 @media print {\r
   body.manpage div#toc { display: none; }\r
 }\r
+\r
+\r
 </style>\r
 <script type="text/javascript">\r
 /*<![CDATA[*/\r
@@ -888,7 +882,7 @@ controller reset occurs.</p></div>
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 2016-03-03 11:36:23 MST\r
+Last updated 2016-05-14 12:27:05 EDT\r
 </div>\r
 </div>\r
 </body>\r
index b97cb220f15bf16ab62de91ae294e8fcf311c427..3094ca8d1724e4ae70ca0bb7eda8fa363f6e9d48 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-security-send
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 03/03/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-SECURITY\-SEND" "1" "03/03/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-SECURITY\-SEND" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 3716447645914344e447ba88e317bb131eda2355..9bfa01b90b1d58babf35b30cbaf1c2a33300aa72 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-set-feature
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-SET\-FEATURE" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-SET\-FEATURE" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 076c14659a44adf68ee273a9591b37435aeb32f6..b8135bde5af85953c70a4dd9b074e2622cdc0e99 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-id-ns
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 06/08/2015
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ID\-NS" "1" "06/08/2015" "NVMe" "NVMe Manual"
+.TH "NVME\-ID\-NS" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 4d479565f905a7eaedaec1e59aac1c73b086a315..ace13d08e17fd1e4a6c0ca562b55eb3d0e345ede 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-smart-log
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 02/26/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-SMART\-LOG" "1" "02/26/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-SMART\-LOG" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index f467342e4adeeb9db92118c70c1702e34b95d961..7bb7c4d8ed24cf0248b95defda38819ed49565de 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-subsystem-reset
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 03/17/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-SUBSYSTEM\-RES" "1" "03/17/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-SUBSYSTEM\-RES" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 1e106b5af9b2cd310b65771b2e4cfc7fdd304608..acd9c27508b2ed77ed180ae92e1faf770450d528 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-uncor
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 03/02/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-UNCOR" "1" "03/02/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-UNCOR" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index ec7b967c5d41d55c6bc69d325a9367ce50958f8d..274d9256447ced233734b0a00be6e0070aa13662 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-zeroes
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 03/02/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ZEROES" "1" "03/02/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-ZEROES" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index 06988c5e06ea76412f5202c7e3812f38f4c57508..6b15530fa812ac47ccfa2bdac0f0cd1f51ed1531 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-write
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 03/02/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-WRITE" "1" "03/02/2016" "NVMe" "NVMe Manual"
+.TH "NVME\-WRITE" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
index b7aae96011ed2661c15bdc7ba25c64f99adeb146..cb481109823ec778f13a44b67855eb9e3162bed4 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme
 .\"    Author: [see the "Authors" section]
-.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 03/02/2016
+.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
+.\"      Date: 05/14/2016
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME" "1" "03/02/2016" "NVMe" "NVMe Manual"
+.TH "NVME" "1" "05/14/2016" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
diff --git a/nvme.c b/nvme.c
index 42d7282d05aa579f35fd03ea63208eedd392239a..7d9cb8f234bb38bc0a7bc7ef3c3ecb1cea4aec02 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -2335,6 +2335,7 @@ static int passthru(int argc, char **argv, int ioctl_cmd, const char *desc)
                __u8  dry_run;
                __u8  read;
                __u8  write;
+               __u8  prefill;
        };
 
        struct config cfg = {
@@ -2354,6 +2355,7 @@ static int passthru(int argc, char **argv, int ioctl_cmd, const char *desc)
                .cdw14        = 0,
                .cdw15        = 0,
                .input_file   = "",
+               .prefill      = 0,
        };
 
        const char *opcode = "hex opcode (required)";
@@ -2377,10 +2379,12 @@ static int passthru(int argc, char **argv, int ioctl_cmd, const char *desc)
        const char *dry = "show command instead of sending";
        const char *re = "set dataflow direction to receive";
        const char *wr = "set dataflow direction to send";
+       const char *prefill = "prefill buffer with known byte-value, default 0";
 
        const struct argconfig_commandline_options command_line_options[] = {
                {"opcode",       'o', "NUM",  CFG_BYTE,     &cfg.opcode,       required_argument, opcode},
                {"flags",        'f', "NUM",  CFG_BYTE,     &cfg.flags,        required_argument, flags},
+               {"prefill",      'p', "NUM",  CFG_BYTE,     &cfg.prefill,      required_argument, prefill},
                {"rsvd",         'R', "NUM",  CFG_SHORT,    &cfg.rsvd,         required_argument, rsvd},
                {"namespace-id", 'n', "NUM",  CFG_POSITIVE, &cfg.namespace_id, required_argument, namespace_id},
                {"data-len",     'l', "NUM",  CFG_POSITIVE, &cfg.data_len,     required_argument, data_len},
@@ -2418,6 +2422,9 @@ static int passthru(int argc, char **argv, int ioctl_cmd, const char *desc)
                metadata = malloc(cfg.metadata_len);
        if (cfg.data_len) {
                data = malloc(cfg.data_len);
+               if (!data)
+                       exit(ENOMEM);
+               memset(data, cfg.prefill, cfg.data_len);
                if (!cfg.read && !cfg.write) {
                        fprintf(stderr, "data direction not given\n");
                        err = EINVAL;