'\" 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
.\" -----------------------------------------------------------------
.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
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
+<?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
padding: 0;\r
margin: 0;\r
}\r
-\r
+pre {\r
+ white-space: pre-wrap;\r
+}\r
\r
#author {\r
color: #527bbd;\r
}\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
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
<div class="sectionbody">\r
<div class="verseblock">\r
<pre class="content"><em>nvme zns open-zone</em> <device> [--namespace-id=<NUM> | -n <NUM>]\r
- [--start-lba=<LBA> | -s <LBA>]\r
- [--zrwa | -r]\r
- [--select-all | -a]\r
- [--timeout=<timeout> | -t <timeout>]</pre>\r
+ [--start-lba=<LBA> | -s <LBA>]\r
+ [--zrwaa | -r]\r
+ [--select-all | -a]\r
+ [--timeout=<timeout> | -t <timeout>]</pre>\r
<div class="attribution">\r
</div></div>\r
</div>\r
-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
<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
--------
[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
-----------
-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::
'\" 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
.\" -----------------------------------------------------------------
.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
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>
+<?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
padding: 0;\r
margin: 0;\r
}\r
-\r
+pre {\r
+ white-space: pre-wrap;\r
+}\r
\r
#author {\r
color: #527bbd;\r
}\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
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
<div class="verseblock">\r
<pre class="content"><em>nvme zns setzone-desc</em> <device> [--namespace-id=<NUM> | -n <NUM>]\r
[--start-lba=<IONUM>, -s <IONUM>]\r
- [--zrwa | -r]\r
+ [--zrwaa | -r]\r
[-data=<FILE>, -d <FILE>]\r
[--timeout=<timeout> | -t <timeout>]</pre>\r
<div class="attribution">\r
-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
<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
[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>]
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>::
'\" 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
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>
.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
+<?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
padding: 0;\r
margin: 0;\r
}\r
-\r
+pre {\r
+ white-space: pre-wrap;\r
+}\r
\r
#author {\r
color: #527bbd;\r
}\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
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
<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
<h2 id="_synopsis">SYNOPSIS</h2>\r
<div class="sectionbody">\r
<div class="verseblock">\r
-<pre class="content"><em>nvme zns flush-zone</em> <device> [--namespace-id=<NUM> | -n <NUM>]\r
- [--last-lba=<LBA> | -l <LBA>]\r
- [--timeout=<timeout> | -t <timeout> ]</pre>\r
+<pre class="content"><em>nvme zns zrwa-flush-zone</em> <device> [--namespace-id=<NUM> | -n <NUM>]\r
+ [--lba=<LBA> | -l <LBA>]\r
+ [--timeout=<timeout> | -t <timeout> ]</pre>\r
<div class="attribution">\r
</div></div>\r
</div>\r
-l <lba>\r
</dt>\r
<dt class="hdlist1">\r
---last-lba=<lba>\r
+--lba=<lba>\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
</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
<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
-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
-----------
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>::
* 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
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);
struct config {
__u64 zslba;
__u32 namespace_id;
- bool zrwaa;
+ bool zrwaa;
bool select_all;
__u32 timeout;
};
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()
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()
};