Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions nvme.c
Original file line number Diff line number Diff line change
Expand Up @@ -3501,6 +3501,12 @@ static int list(int argc, char **argv, struct command *cmd, struct plugin *plugi
}
err = nvme_scan_topology(r, NULL, NULL);
if (err < 0) {
/* Do not report an error when the modules are not loaded */
if (errno == ENOENT) {
nvme_show_list_items(r, flags);
return 0;
}

nvme_show_error("Failed to scan topology: %s", nvme_strerror(errno));
return err;
}
Expand Down