};
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
+ if (fd < 0)
+ return fd;
err = nvme_get_log(fd, cfg.namespace_id, 0xca, sizeof(smart_log),
&smart_log);
};
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
+ if (fd < 0)
+ return fd;
err = nvme_get_log(fd, NVME_NSID_ALL, 0xdd, sizeof(log), log);
if (!err) {
};
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
+ if (fd < 0)
+ return fd;
err = nvme_get_log(fd, NVME_NSID_ALL, 0xc5, sizeof(stats), &stats);
if (!err) {
};
fd = parse_and_open(argc, argv, desc, command_line_options, &cfg, sizeof(cfg));
+ if (fd < 0)
+ return fd;
err = nvme_get_log(fd, NVME_NSID_ALL, cfg.write ? 0xc2 : 0xc1, sizeof(stats), &stats);
if (!err) {