]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: update documentation of effects-log
authorMinwoo Im <minwoo.im.dev@gmail.com>
Sat, 13 Jan 2018 12:22:53 +0000 (21:22 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Sat, 13 Jan 2018 12:22:53 +0000 (21:22 +0900)
Update documentation of effects-log subcommand with descriptions of
option. Also add an example of --raw-binary option to the document.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Documentation/nvme-effects-log.1
Documentation/nvme-effects-log.html
Documentation/nvme-effects-log.txt

index 69abdfde8dd9252d88db6561eea3386ffbacadae..737e64a1de29540ec147e0182d62d05dda7f437b 100644 (file)
@@ -2,12 +2,12 @@
 .\"     Title: nvme-effects-log
 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
 .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\"      Date: 12/10/2017
+.\"      Date: 01/13/2018
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-EFFECTS\-LOG" "1" "12/10/2017" "NVMe" "NVMe Manual"
+.TH "NVME\-EFFECTS\-LOG" "1" "01/13/2018" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
@@ -32,7 +32,9 @@ nvme-effects-log \- Send NVMe Command Effects log page request, returns result a
 .SH "SYNOPSIS"
 .sp
 .nf
-\fInvme effects\-log\fR <device>
+\fInvme effects\-log\fR <device> [\-\-output\-format=<fmt> | \-o <fmt>]
+                            [\-\-human\-readable | \-H]
+                            [\-\-raw\-binary | \-b]
 .fi
 .SH "DESCRIPTION"
 .sp
@@ -42,8 +44,21 @@ The <device> parameter is mandatory and should be the NVMe character device (ex:
 .sp
 On success, the returned command effects log structure will be printed for each command that is supported\&.
 .SH "OPTIONS"
-.sp
-No options\&.
+.PP
+\-o <format>, \-\-output\-format=<format>
+.RS 4
+This option will set the reporting format to normal, json, or binary\&. Only one output format can be used at a time\&.
+.RE
+.PP
+\-H, \-\-human\-readable
+.RS 4
+This option will parse and format many of the bit fields into a human\-readable format\&.
+.RE
+.PP
+\-b, \-\-raw\-binary
+.RS 4
+This option will print the raw buffer to stdout\&. Structure is not parsed by program\&. This overrides the human\-readable option\&.
+.RE
 .SH "EXAMPLES"
 .sp
 .RS 4
@@ -65,8 +80,28 @@ Print the effects log page in a human readable format:
 .if n \{\
 .RE
 .\}
+.RE
 .sp
-Not much to it\&.
+.RS 4
+.ie n \{\
+\h'-04'\(bu\h'+03'\c
+.\}
+.el \{\
+.sp -1
+.IP \(bu 2.3
+.\}
+Have the program return the raw structure in binary:
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+# nvme effects\-log /dev/nvme0 \-\-raw\-binary > effects_log\&.raw
+# nvme effects\-log /dev/nvme0 \-b > effects_log\&.raw
+.fi
+.if n \{\
+.RE
+.\}
 .RE
 .SH "NVME"
 .sp
index 8650318588ea1d48dbea7e05370c7ee87054a172..0f71382175a8360df2099462454a742278c9ef32 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.8" />\r
+<meta name="generator" content="AsciiDoc 8.6.9" />\r
 <title>nvme-effects-log(1)</title>\r
 <style type="text/css">\r
 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */\r
@@ -94,7 +94,9 @@ ul > li > * { color: black; }
   padding: 0;\r
   margin: 0;\r
 }\r
-\r
+pre {\r
+  white-space: pre-wrap;\r
+}\r
 \r
 #author {\r
   color: #527bbd;\r
@@ -223,7 +225,7 @@ div.exampleblock > div.content {
 }\r
 \r
 div.imageblock div.content { padding-left: 0; }\r
-span.image img { border-style: none; }\r
+span.image img { border-style: none; vertical-align: text-bottom; }\r
 a.image:visited { color: white; }\r
 \r
 dl {\r
@@ -746,7 +748,9 @@ nvme-effects-log(1) Manual Page
 <h2 id="_synopsis">SYNOPSIS</h2>\r
 <div class="sectionbody">\r
 <div class="verseblock">\r
-<pre class="content"><em>nvme effects-log</em> &lt;device&gt;</pre>\r
+<pre class="content"><em>nvme effects-log</em> &lt;device&gt; [--output-format=&lt;fmt&gt; | -o &lt;fmt&gt;]\r
+                            [--human-readable | -H]\r
+                            [--raw-binary | -b]</pre>\r
 <div class="attribution">\r
 </div></div>\r
 </div>\r
@@ -765,7 +769,44 @@ for each command that is supported.</p></div>
 <div class="sect1">\r
 <h2 id="_options">OPTIONS</h2>\r
 <div class="sectionbody">\r
-<div class="paragraph"><p>No options.</p></div>\r
+<div class="dlist"><dl>\r
+<dt class="hdlist1">\r
+-o &lt;format&gt;\r
+</dt>\r
+<dt class="hdlist1">\r
+--output-format=&lt;format&gt;\r
+</dt>\r
+<dd>\r
+<p>\r
+        This option will set the reporting format to normal, json, or binary.\r
+        Only one output format can be used at a time.\r
+</p>\r
+</dd>\r
+<dt class="hdlist1">\r
+-H\r
+</dt>\r
+<dt class="hdlist1">\r
+--human-readable\r
+</dt>\r
+<dd>\r
+<p>\r
+        This option will parse and format many of the bit fields into a\r
+        human-readable format.\r
+</p>\r
+</dd>\r
+<dt class="hdlist1">\r
+-b\r
+</dt>\r
+<dt class="hdlist1">\r
+--raw-binary\r
+</dt>\r
+<dd>\r
+<p>\r
+        This option will print the raw buffer to stdout. Structure is not\r
+        parsed by program.  This overrides the human-readable option.\r
+</p>\r
+</dd>\r
+</dl></div>\r
 </div>\r
 </div>\r
 <div class="sect1">\r
@@ -780,7 +821,16 @@ Print the effects log page in a human readable format:
 <div class="content">\r
 <pre><code># nvme effects-log /dev/nvme0</code></pre>\r
 </div></div>\r
-<div class="paragraph"><p>Not much to it.</p></div>\r
+</li>\r
+<li>\r
+<p>\r
+Have the program return the raw structure in binary:\r
+</p>\r
+<div class="listingblock">\r
+<div class="content">\r
+<pre><code># nvme effects-log /dev/nvme0 --raw-binary &gt; effects_log.raw\r
+# nvme effects-log /dev/nvme0 -b &gt; effects_log.raw</code></pre>\r
+</div></div>\r
 </li>\r
 </ul></div>\r
 </div>\r
@@ -795,7 +845,8 @@ Print the effects log page in a human readable format:
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 2017-10-27 10:09:24 MDT\r
+Last updated\r
+ 2018-01-13 21:15:43 KST\r
 </div>\r
 </div>\r
 </body>\r
index 90d2cf2325c10275025c6bc982f85c3db4c81e00..2b0b30fb297526a217ee9f94320f522f1c5cb5e9 100644 (file)
@@ -8,7 +8,9 @@ nvme-effects-log - Send NVMe Command Effects log page request, returns result an
 SYNOPSIS
 --------
 [verse]
-'nvme effects-log' <device>
+'nvme effects-log' <device> [--output-format=<fmt> | -o <fmt>]
+                            [--human-readable | -H]
+                            [--raw-binary | -b]
 
 DESCRIPTION
 -----------
@@ -24,7 +26,20 @@ for each command that is supported.
 OPTIONS
 -------
 
-No options.
+-o <format>::
+--output-format=<format>::
+       This option will set the reporting format to normal, json, or binary.
+       Only one output format can be used at a time.
+
+-H::
+--human-readable::
+       This option will parse and format many of the bit fields into a
+       human-readable format.
+
+-b::
+--raw-binary::
+       This option will print the raw buffer to stdout. Structure is not
+       parsed by program.  This overrides the human-readable option.
 
 EXAMPLES
 --------
@@ -35,7 +50,12 @@ EXAMPLES
 ------------
 +
 
-Not much to it.
+* Have the program return the raw structure in binary:
++
+------------
+# nvme effects-log /dev/nvme0 --raw-binary > effects_log.raw
+# nvme effects-log /dev/nvme0 -b > effects_log.raw
+------------
 
 NVME
 ----