Signed-off-by: Keith Busch <keith.busch@intel.com>
int nvme_identify_ns_descs(int fd, __u32 nsid, void *data)
{
- return nvme_identify(fd, nsid, NVME_ID_CNS_CTRL_LIST, data);
+ return nvme_identify(fd, nsid, NVME_ID_CNS_NS_DESC_LIST, data);
}
int nvme_get_log(int fd, __u32 nsid, __u8 log_id, __u32 data_len, void *data)
static int ns_descs(int argc, char **argv, struct command *cmd, struct plugin *plugin)
{
- const char *desc = "Send Namespace Identification Descriptoprs commadn to the "\
+ const char *desc = "Send Namespace Identification Descriptors command to the "\
"given device, returns the namespace identifcation descriptors "\
"of the specific namespace in either human-readable or binary format.";
const char *raw_binary = "show infos in binary format";