nvme-cli: fix nvme-list-ns documentation to match list_ns function
Subsystems (2)
PATCH v2 1/1 nvme-cli: fix nvme-list-ns documentation to match list_ns function
From: Junxiong Guan <[email protected]>
The list_ns function implements two command line options which is located in the line 496 to 499 of the nvme.c file but the manpage documentations of the nvme list-ns command only demostrate the first option i.e. the given namespace-id , leaving the second option i.e. all namesapces out. Therefore nvme-list-ns.1 , nvme-list-ns.html and nvme-lsit-ns.txt are corrected to match the actual implementation of the list_ns function.
--- Documentation/nvme-list-ns.1 | 6 ++++++ Documentation/nvme-list-ns.html | 14 +++++++++++++- Documentation/nvme-list-ns.txt | 7 ++++++- 3 files changed, 25 insertions(+), 2 deletions(-)
Documentation/nvme-list-ns.1 +6 -0
@@ -33,6 +33,7 @@ nvme-list-ns \- Send NVMe Identify List Namespaces, return result and structure .sp .nf \fInvme list\-ns\fR <device> [\-\-namespace\-id=<nsid> | \-n <nsid>] + [\-\-all | \-a ] .fi .SH "DESCRIPTION" .sp
@@ -47,6 +48,11 @@ On success, the namespace array is printed for each index and nsid for a valid n .RS 4 Retrieve the identify list structure starting with the given nsid\&. .RE +.PP +\-a , \-\-all +.RS 4 +Retrieve the identify list structure for all the namespaces in the subsystem whether attached or inactive\&. +.RE .SH "EXAMPLES" .sp No examples yet\&.
Documentation/nvme-list-ns.html +13 -1
@@ -752,7 +752,8 @@ nvme-id-ns(1) Manual Page <h2 id="_synopsis">SYNOPSIS</h2> <div class="sectionbody"> <div class="verseblock"> -<pre class="content"><em>nvme list-ns</em> <device> [--namespace-id=<nsid> | -n <nsid>]</pre> +<pre class="content"><em>nvme list-ns</em> <device> [--namespace-id=<nsid> | -n <nsid>] + [--all | -a]</pre> <div class="attribution"> </div></div> </div>
@@ -785,6 +786,17 @@ a valid nsid.</p></div> Retrieve the identify list structure starting with the given nsid. </p> </dd> +<dt class="hdlist1"> +-a +</dt> +<dt class="hdlist1"> +-all +</dt> +<dd> +<p> + Retrieve the identify list structure for all the namespaces in the + subsystem whether attached or inactive. +</p> </dl></div> </div> </div>
Documentation/nvme-list-ns.txt +6 -1
@@ -9,7 +9,7 @@ SYNOPSIS -------- [verse] 'nvme list-ns' <device> [--namespace-id=<nsid> | -n <nsid>] - + [--all | -a ] DESCRIPTION ----------- For the NVMe device given, sends an identify command for namespace list
@@ -29,6 +29,11 @@ OPTIONS --namespace-id=<nsid>:: Retrieve the identify list structure starting with the given nsid. +-a:: +--all:: + Retrieve the identify list structure for all the namespaces in the + subsystem whether attached or inactive. + EXAMPLES -------- No examples yet.
Signature · 1 line
2.11.1
PATCH v2 1/1 nvme-cli: fix nvme-list-ns documentation to match list_ns function
Quoted 3 lines · Guan Junxiong
From: Junxiong Guan <guanjunxiong at huawei.com>
The
list_nsfunction implements two command line options which is located in the line 496 to 499 of thenvme.cfile but the manpage documentations of the nvme list-ns command only demostrate the first option i.e. the given namespace-id , leaving the second option i.e. all namesapces out. Therefore nvme-list-ns.1 , nvme-list-ns.html and nvme-lsit-ns.txt are corrected to match the actual implementation of thelist_nsfunction.
Thanks for the update. I applied after adjusting the commit log to make it multiple lines.