]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: update list-ns nsid option
authorMax Gurtovoy <maxg@mellanox.com>
Thu, 30 May 2019 09:43:22 +0000 (12:43 +0300)
committerKeith Busch <keith.busch@gmail.com>
Fri, 7 Jun 2019 16:16:30 +0000 (10:16 -0600)
commit81bb8289f642b66ed6ad183cc280bf697cda3936
tree8ab022ee46b8764a97d8f3aa613a3c8e4c70459f
parent190a78cc47accae4aa8da70532f27f64c8607cc2
nvme: update list-ns nsid option

This commit updates the optional nsid argument to define the wanted
nsid for start, instead of starting from nsid + 1. E.g. in case we've
wanted to get the list of namespaces starting from 1, before this
commit, we used the "--namespace-id=0" option. Nsid 0 is not valid in
NVMe spec, thus change it to start counting from the given nsid.

Reviewed-by: Minwoo Im <minwoo.im@samsung.com>
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
nvme.c