[PATCH] nvme-cli: Fix to the logic of the nvme list-ns <device> -a command.

Guan Junxiong guanjunxiong at huawei.com
Mon Jul 10 01:07:35 PDT 2017

Thanks for your effort.

On 2017/7/9 8:36, Chaitanya Kulkarni wrote:
> This fix will reverse the logic of the -a parm in the nvme list-ns
> command. Currently, the -a option only shows the attached namespaces
> and not all the namespaces. By removing the extra ! it will show attached
> inactive namespaces with -a option as mentioned in the help text.
Actually, the approach of reversing the logic of the -a option doesn't
keep the consistence of literal input parameter __bool__ __all__ of the
nvme_identify_ns_list function.

By the way ,I had sent a patch to fix this two month ago but Keith missed it.
A new updated patch of this was sent a minute ago. Hope Keith would catch it.
(The origin link is: http://lists.infradead.org/pipermail/linux-nvme/2017-April/009805.html


More information about the Linux-nvme mailing list