]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: get_ns_id command fails on nvme device
authorMartin George <marting@netapp.com>
Mon, 21 Feb 2022 05:09:14 +0000 (10:39 +0530)
committerMartin George <marting@netapp.com>
Mon, 21 Feb 2022 05:09:14 +0000 (10:39 +0530)
commit57591db7ede350af6fd2478d531b616a01ccccd6
tree7e3622fa3f121b948fbf70b0b79b89ce295918da
parent512b14d1294e03000919bf8519decd5c057a7f6d
nvme: get_ns_id command fails on nvme device

The get-ns-id command currently prints the perror status for a
given nvme device rather than its nsid. Fix this by properly
checking the return status of the nvme_get_nsid() function.

Signed-off-by: Martin George <marting@netapp.com>
nvme.c