]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
zns: Documentation update and whitespace fixes
authorDaniel Wagner <dwagner@suse.de>
Mon, 13 Dec 2021 18:35:00 +0000 (19:35 +0100)
committerDaniel Wagner <dwagner@suse.de>
Mon, 13 Dec 2021 18:39:44 +0000 (19:39 +0100)
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Documentation/nvme-zns-open-zone.1
Documentation/nvme-zns-open-zone.html
Documentation/nvme-zns-open-zone.txt
Documentation/nvme-zns-set-zone-desc.1
Documentation/nvme-zns-set-zone-desc.html
Documentation/nvme-zns-set-zone-desc.txt
Documentation/nvme-zns-zrwa-flush-zone.1 [moved from Documentation/nvme-zns-flush-zone.1 with 74% similarity]
Documentation/nvme-zns-zrwa-flush-zone.html [moved from Documentation/nvme-zns-flush-zone.html with 91% similarity]
Documentation/nvme-zns-zrwa-flush-zone.txt [moved from Documentation/nvme-zns-flush-zone.txt with 69% similarity]
plugins/zns/zns.c

index 037f3fcd2f05f9f6182aca7cdea0acc869b7d620..b88d5448a52dfbf818757bdabe6c41a3b24c1feb 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-zns-open-zone
-.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
-.\"      Date: 12/08/2021
+.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
+.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
+.\"      Date: 12/13/2021
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ZNS\-OPEN\-ZON" "1" "12/08/2021" "NVMe" "NVMe Manual"
+.TH "NVME\-ZNS\-OPEN\-ZON" "1" "12/13/2021" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
@@ -33,10 +33,10 @@ nvme-zns-open-zone \- Opens one or all zones
 .sp
 .nf
 \fInvme zns open\-zone\fR <device> [\-\-namespace\-id=<NUM> | \-n <NUM>]
-                                                [\-\-start\-lba=<LBA> | \-s <LBA>]
-                                                [\-\-zrwa | \-r]
-                                                [\-\-select\-all | \-a]
-                                                [\-\-timeout=<timeout> | \-t <timeout>]
+                              [\-\-start\-lba=<LBA> | \-s <LBA>]
+                              [\-\-zrwaa | \-r]
+                              [\-\-select\-all | \-a]
+                              [\-\-timeout=<timeout> | \-t <timeout>]
 .fi
 .SH "DESCRIPTION"
 .sp
@@ -55,9 +55,9 @@ Use the provided namespace id for the command\&. If not provided, the namespace
 The starting LBA of the zone to open\&.
 .RE
 .PP
-\-r, \-\-zrwa
+\-r, \-\-zrwaa
 .RS 4
-Zone Random Write Area Allocation
+Allocate Zone Random Write Area to zone
 .RE
 .PP
 \-a, \-\-select\-all
index b2407355486964bdc30a676ee8980bb4b9d155bc..3bfd215b92d6264555929662caf3977de3a4c946 100644 (file)
@@ -1,9 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\r
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
 <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" />\r
 <title>nvme-zns-open-zone(1)</title>\r
 <style type="text/css">\r
 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */\r
@@ -94,7 +95,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 +226,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
@@ -433,7 +436,7 @@ thead, p.table.header {
 p.table {\r
   margin-top: 0;\r
 }\r
-/* Because the table frame attribute is overriden by CSS in most browsers. */\r
+/* Because the table frame attribute is overridden by CSS in most browsers. */\r
 div.tableblock > table[frame="void"] {\r
   border-style: none;\r
 }\r
@@ -747,10 +750,10 @@ nvme-zns-open-zone(1) Manual Page
 <div class="sectionbody">\r
 <div class="verseblock">\r
 <pre class="content"><em>nvme zns open-zone</em> &lt;device&gt; [--namespace-id=&lt;NUM&gt; | -n &lt;NUM&gt;]\r
-                                                [--start-lba=&lt;LBA&gt; | -s &lt;LBA&gt;]\r
-                                                [--zrwa | -r]\r
-                                                [--select-all | -a]\r
-                                                [--timeout=&lt;timeout&gt; | -t &lt;timeout&gt;]</pre>\r
+                              [--start-lba=&lt;LBA&gt; | -s &lt;LBA&gt;]\r
+                              [--zrwaa | -r]\r
+                              [--select-all | -a]\r
+                              [--timeout=&lt;timeout&gt; | -t &lt;timeout&gt;]</pre>\r
 <div class="attribution">\r
 </div></div>\r
 </div>\r
@@ -796,11 +799,11 @@ device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1).</p></di
 -r\r
 </dt>\r
 <dt class="hdlist1">\r
---zrwa\r
+--zrwaa\r
 </dt>\r
 <dd>\r
 <p>\r
-        Zone Random Write Area Allocation\r
+        Allocate Zone Random Write Area to zone\r
 </p>\r
 </dd>\r
 <dt class="hdlist1">\r
@@ -854,7 +857,8 @@ Open the first zone on namespace 1:
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 2021-12-08 15:16:54 KST\r
+Last updated\r
+ 2021-12-13 19:32:34 CET\r
 </div>\r
 </div>\r
 </body>\r
index 420320c60bd33084f9d7ee7e45cf6206eb39c78b..0f2cb3551a56c88a6014f221a687ebf623df4db4 100644 (file)
@@ -9,10 +9,10 @@ SYNOPSIS
 --------
 [verse]
 'nvme zns open-zone' <device> [--namespace-id=<NUM> | -n <NUM>]
-                                               [--start-lba=<LBA> | -s <LBA>]
-                                               [--zrwa | -r]
-                                               [--select-all | -a]
-                                               [--timeout=<timeout> | -t <timeout>]
+                             [--start-lba=<LBA> | -s <LBA>]
+                             [--zrwaa | -r]
+                             [--select-all | -a]
+                             [--timeout=<timeout> | -t <timeout>]
 
 DESCRIPTION
 -----------
@@ -32,11 +32,11 @@ OPTIONS
 
 -s <lba>::
 --start-lba=<lba>::
-       The starting LBA of the zone to open. 
+       The starting LBA of the zone to open.
 
 -r::
---zrwa::
-       Zone Random Write Area Allocation
+--zrwaa::
+       Allocate Zone Random Write Area to zone
 
 -a::
 --select-all::
index bbb6b200aa26a3e179435368b2a160e10e1e138f..ef9035ccf8116d1e4dc1d9bb6534293e3296c846 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
 .\"     Title: nvme-zns-set-zone-desc
-.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
-.\"      Date: 12/08/2021
+.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
+.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
+.\"      Date: 12/13/2021
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ZNS\-SET\-ZONE" "1" "12/08/2021" "NVMe" "NVMe Manual"
+.TH "NVME\-ZNS\-SET\-ZONE" "1" "12/13/2021" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
@@ -34,7 +34,7 @@ nvme-zns-set-zone-desc \- Set extended descriptor data for a zone
 .nf
 \fInvme zns setzone\-desc\fR <device> [\-\-namespace\-id=<NUM> | \-n <NUM>]
                                  [\-\-start\-lba=<IONUM>, \-s <IONUM>]
-                                 [\-\-zrwa | \-r]
+                                 [\-\-zrwaa | \-r]
                                  [\-data=<FILE>, \-d <FILE>]
                                  [\-\-timeout=<timeout> | \-t <timeout>]
 .fi
@@ -53,9 +53,9 @@ Use the provided namespace id for the command\&. If not provided, the namespace
 The starting LBA of the zone to manage send\&.
 .RE
 .PP
-\-r, \-\-zrwa
+\-r, \-\-zrwaa
 .RS 4
-Zone Random Write Area Allocation
+Allocate Zone Random Write Area to zone\&.
 .RE
 .PP
 \-d <FILE, \-data=<FILE>
index b595554bbf84977b682b987e3535bbadec6a5033..4c69ea7e6d3c8c16e313b6e3deac419ebc859d5f 100644 (file)
@@ -1,9 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\r
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
 <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" />\r
 <title>nvme-zns-set-zone-desc(1)</title>\r
 <style type="text/css">\r
 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */\r
@@ -94,7 +95,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 +226,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
@@ -433,7 +436,7 @@ thead, p.table.header {
 p.table {\r
   margin-top: 0;\r
 }\r
-/* Because the table frame attribute is overriden by CSS in most browsers. */\r
+/* Because the table frame attribute is overridden by CSS in most browsers. */\r
 div.tableblock > table[frame="void"] {\r
   border-style: none;\r
 }\r
@@ -748,7 +751,7 @@ nvme-zns-set-zone-desc(1) Manual Page
 <div class="verseblock">\r
 <pre class="content"><em>nvme zns setzone-desc</em> &lt;device&gt; [--namespace-id=&lt;NUM&gt; | -n &lt;NUM&gt;]\r
                                  [--start-lba=&lt;IONUM&gt;, -s &lt;IONUM&gt;]\r
-                                 [--zrwa | -r]\r
+                                 [--zrwaa | -r]\r
                                  [-data=&lt;FILE&gt;, -d &lt;FILE&gt;]\r
                                  [--timeout=&lt;timeout&gt; | -t &lt;timeout&gt;]</pre>\r
 <div class="attribution">\r
@@ -796,11 +799,11 @@ length will automatically be calculated from the zns identify namesapce.</p></di
 -r\r
 </dt>\r
 <dt class="hdlist1">\r
---zrwa\r
+--zrwaa\r
 </dt>\r
 <dd>\r
 <p>\r
-        Zone Random Write Area Allocation\r
+        Allocate Zone Random Write Area to zone.\r
 </p>\r
 </dd>\r
 <dt class="hdlist1">\r
@@ -855,7 +858,8 @@ Write "hello world" into the zone descriptor for namespace 1&#8217;s first zone
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 2021-12-08 15:17:18 KST\r
+Last updated\r
+ 2021-12-13 19:34:14 CET\r
 </div>\r
 </div>\r
 </body>\r
index c24afa460c53202ac1ae017be931ed99bbb7621a..ca598b85888e65aa0765bf99b3b8b3185cdbb492 100644 (file)
@@ -10,7 +10,7 @@ SYNOPSIS
 [verse]
 'nvme zns setzone-desc' <device> [--namespace-id=<NUM> | -n <NUM>]
                                 [--start-lba=<IONUM>, -s <IONUM>]
-                                [--zrwa | -r]
+                                [--zrwaa | -r]
                                 [-data=<FILE>, -d <FILE>]
                                 [--timeout=<timeout> | -t <timeout>]
 
@@ -34,8 +34,8 @@ OPTIONS
        The starting LBA of the zone to manage send.
 
 -r::
---zrwa::
-       Zone Random Write Area Allocation
+--zrwaa::
+       Allocate Zone Random Write Area to zone.
 
 -d <FILE::
 -data=<FILE>::
similarity index 74%
rename from Documentation/nvme-zns-flush-zone.1
rename to Documentation/nvme-zns-zrwa-flush-zone.1
index 558f119ed62dca2a271d4ec6abe2da91ff80222d..fb88210fcda58492ee79363de19e94ffaf6acac9 100644 (file)
@@ -1,13 +1,13 @@
 '\" t
-.\"     Title: nvme-zns-flush-zone
-.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
-.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
-.\"      Date: 12/08/2021
+.\"     Title: nvme-zns-zrwa-flush-zone
+.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
+.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
+.\"      Date: 12/13/2021
 .\"    Manual: NVMe Manual
 .\"    Source: NVMe
 .\"  Language: English
 .\"
-.TH "NVME\-ZNS\-FLUSH\-ZO" "1" "12/08/2021" "NVMe" "NVMe Manual"
+.TH "NVME\-ZNS\-ZRWA\-FLU" "1" "12/13/2021" "NVMe" "NVMe Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
 .\" * MAIN CONTENT STARTS HERE *
 .\" -----------------------------------------------------------------
 .SH "NAME"
-nvme-zns-flush-zone \- flush zone
+nvme-zns-zrwa-flush-zone \- Flush LBAs associated with a ZRWA to a zone
 .SH "SYNOPSIS"
 .sp
 .nf
-\fInvme zns flush\-zone\fR <device> [\-\-namespace\-id=<NUM> | \-n <NUM>]
-                               [\-\-last\-lba=<LBA> | \-l <LBA>]
-                                   [\-\-timeout=<timeout> | \-t <timeout> ]
+\fInvme zns zrwa\-flush\-zone\fR <device> [\-\-namespace\-id=<NUM> | \-n <NUM>]
+                                    [\-\-lba=<LBA> | \-l <LBA>]
+                                    [\-\-timeout=<timeout> | \-t <timeout> ]
 .fi
 .SH "DESCRIPTION"
 .sp
@@ -48,9 +48,9 @@ The <device> parameter is mandatory and may be either the NVMe character device
 Use the provided namespace id for the command\&. If not provided, the namespace id of the block device will be used\&. If the command is issued to a non\-block device, the parameter is required\&.
 .RE
 .PP
-\-l <lba>, \-\-last\-lba=<lba>
+\-l <lba>, \-\-lba=<lba>
 .RS 4
-The last LBA of the zone to be flushed\&.
+The LBA to flush up to\&.
 .RE
 .PP
 \-t <timeout>, \-\-timeout=<timeout>
@@ -73,7 +73,7 @@ flush the first zwra of first zone for zrwacg(15) on namespace 1:
 .RS 4
 .\}
 .nf
-# nvme zns flush\-zone /dev/nvme0 \-n 1 \-l 15
+# nvme zns zrwa\-flush\-zone /dev/nvme0 \-n 1 \-l 15
 .fi
 .if n \{\
 .RE
similarity index 91%
rename from Documentation/nvme-zns-flush-zone.html
rename to Documentation/nvme-zns-zrwa-flush-zone.html
index e8026dbe3dd6c560345a83818b24ad534d7d78c5..38a013f9dc8889477d639b500be9840198fa2916 100644 (file)
@@ -1,10 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\r
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\r
 <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
-<title>nvme-zns-flush-zone(1)</title>\r
+<meta name="generator" content="AsciiDoc" />\r
+<title>nvme-zns-zrwa-flush-zone(1)</title>\r
 <style type="text/css">\r
 /* Shared CSS for AsciiDoc xhtml11 and html5 backends */\r
 \r
@@ -94,7 +95,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 +226,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
@@ -433,7 +436,7 @@ thead, p.table.header {
 p.table {\r
   margin-top: 0;\r
 }\r
-/* Because the table frame attribute is overriden by CSS in most browsers. */\r
+/* Because the table frame attribute is overridden by CSS in most browsers. */\r
 div.tableblock > table[frame="void"] {\r
   border-style: none;\r
 }\r
@@ -732,12 +735,12 @@ asciidoc.install();
 <body class="manpage">\r
 <div id="header">\r
 <h1>\r
-nvme-zns-flush-zone(1) Manual Page\r
+nvme-zns-zrwa-flush-zone(1) Manual Page\r
 </h1>\r
 <h2>NAME</h2>\r
 <div class="sectionbody">\r
-<p>nvme-zns-flush-zone -\r
-   flush zone\r
+<p>nvme-zns-zrwa-flush-zone -\r
+   Flush LBAs associated with a ZRWA to a zone\r
 </p>\r
 </div>\r
 </div>\r
@@ -746,9 +749,9 @@ nvme-zns-flush-zone(1) Manual Page
 <h2 id="_synopsis">SYNOPSIS</h2>\r
 <div class="sectionbody">\r
 <div class="verseblock">\r
-<pre class="content"><em>nvme zns flush-zone</em> &lt;device&gt; [--namespace-id=&lt;NUM&gt; | -n &lt;NUM&gt;]\r
-                               [--last-lba=&lt;LBA&gt; | -l &lt;LBA&gt;]\r
-                                   [--timeout=&lt;timeout&gt; | -t &lt;timeout&gt; ]</pre>\r
+<pre class="content"><em>nvme zns zrwa-flush-zone</em> &lt;device&gt; [--namespace-id=&lt;NUM&gt; | -n &lt;NUM&gt;]\r
+                                    [--lba=&lt;LBA&gt; | -l &lt;LBA&gt;]\r
+                                    [--timeout=&lt;timeout&gt; | -t &lt;timeout&gt; ]</pre>\r
 <div class="attribution">\r
 </div></div>\r
 </div>\r
@@ -784,11 +787,11 @@ device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1).</p></di
 -l &lt;lba&gt;\r
 </dt>\r
 <dt class="hdlist1">\r
---last-lba=&lt;lba&gt;\r
+--lba=&lt;lba&gt;\r
 </dt>\r
 <dd>\r
 <p>\r
-        The last LBA of the zone to be flushed.\r
+        The LBA to flush up to.\r
 </p>\r
 </dd>\r
 <dt class="hdlist1">\r
@@ -815,7 +818,7 @@ flush the first zwra of first zone for zrwacg(15) on namespace 1:
 </p>\r
 <div class="listingblock">\r
 <div class="content">\r
-<pre><code># nvme zns flush-zone /dev/nvme0 -n 1 -l 15</code></pre>\r
+<pre><code># nvme zns zrwa-flush-zone /dev/nvme0 -n 1 -l 15</code></pre>\r
 </div></div>\r
 </li>\r
 </ul></div>\r
@@ -831,7 +834,8 @@ flush the first zwra of first zone for zrwacg(15) on namespace 1:
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 2021-12-07 17:49:58 KST\r
+Last updated\r
+ 2021-12-13 19:30:31 CET\r
 </div>\r
 </div>\r
 </body>\r
similarity index 69%
rename from Documentation/nvme-zns-flush-zone.txt
rename to Documentation/nvme-zns-zrwa-flush-zone.txt
index f1ee558fa3de50fb8e695e7589e3d9c63852e0f2..19e79263f09d5f331f8de29d5c4e5a9c18cefb79 100644 (file)
@@ -1,16 +1,16 @@
-nvme-zns-flush-zone(1)
-======================
+nvme-zns-zrwa-flush-zone(1)
+===========================
 
 NAME
 ----
-nvme-zns-flush-zone - flush zone
+nvme-zns-zrwa-flush-zone - Flush LBAs associated with a ZRWA to a zone
 
 SYNOPSIS
 --------
 [verse]
-'nvme zns flush-zone' <device> [--namespace-id=<NUM> | -n <NUM>]
-                              [--last-lba=<LBA> | -l <LBA>]
-                                  [--timeout=<timeout> | -t <timeout> ]
+'nvme zns zrwa-flush-zone' <device> [--namespace-id=<NUM> | -n <NUM>]
+                                   [--lba=<LBA> | -l <LBA>]
+                                   [--timeout=<timeout> | -t <timeout> ]
 
 DESCRIPTION
 -----------
@@ -30,8 +30,8 @@ OPTIONS
        to a non-block device, the parameter is required.
 
 -l <lba>::
---last-lba=<lba>::
-       The last LBA of the zone to be flushed. 
+--lba=<lba>::
+       The LBA to flush up to.
 
 -t <timeout>::
 --timeout=<timeout>::
@@ -42,7 +42,7 @@ EXAMPLES
 * flush the first zwra of first zone for zrwacg(15) on namespace 1:
 +
 ------------
-# nvme zns flush-zone /dev/nvme0 -n 1 -l 15
+# nvme zns zrwa-flush-zone /dev/nvme0 -n 1 -l 15
 ------------
 
 NVME
index 0dac0e62a5916076c82285f8be2b0f52003689f3..98ad8641766b3da9b6428b8e3096198e38080ddd 100644 (file)
@@ -272,12 +272,12 @@ static int zns_mgmt_send(int argc, char **argv, struct command *cmd, struct plug
        err = nvme_zns_mgmt_send(fd, cfg.namespace_id, cfg.zslba, zsa,
                cfg.select_all, 0, 0, NULL, cfg.timeout, &result);
        if (!err) {
-    if (zsa == NVME_ZNS_ZSA_RESET)
-      zcapc = result & 0x1;
+               if (zsa == NVME_ZNS_ZSA_RESET)
+                       zcapc = result & 0x1;
 
                printf("%s: Success, action:%d zone:%"PRIx64" all:%d zcapc:%u nsid:%d\n",
                        command, zsa, (uint64_t)cfg.zslba, (int)cfg.select_all,
-      zcapc, cfg.namespace_id);
+                       zcapc, cfg.namespace_id);
        }
        else if (err > 0)
                nvme_show_status(err);
@@ -469,7 +469,7 @@ static int open_zone(int argc, char **argv, struct command *cmd, struct plugin *
        struct config {
                __u64   zslba;
                __u32   namespace_id;
-               bool  zrwaa;
+               bool    zrwaa;
                bool    select_all;
                __u32   timeout;
        };
@@ -549,7 +549,7 @@ static int set_zone_desc(int argc, char **argv, struct command *cmd, struct plug
        OPT_ARGS(opts) = {
                OPT_UINT("namespace-id", 'n', &cfg.namespace_id,  namespace_id),
                OPT_SUFFIX("start-lba",  's', &cfg.zslba,         zslba),
-               OPT_FLAG("zrwaa",         'r', &cfg.zrwaa,          zrwaa),
+               OPT_FLAG("zrwaa",        'r', &cfg.zrwaa,         zrwaa),
                OPT_FILE("data",         'd', &cfg.file,          data),
                OPT_UINT("timeout",      't', &cfg.timeout,       timeout),
                OPT_END()
@@ -638,7 +638,7 @@ static int zrwa_flush_zone(int argc, char **argv, struct command *cmd, struct pl
 
        OPT_ARGS(opts) = {
                OPT_UINT("namespace-id", 'n', &cfg.namespace_id,  namespace_id),
-               OPT_SUFFIX("lba",   'l', &cfg.lba,         slba),
+               OPT_SUFFIX("lba",        'l', &cfg.lba,           slba),
                OPT_UINT("timeout",      't', &cfg.timeout,       timeout),
                OPT_END()
        };