bdev/nvme: print error message when PCIe SSD not found
This includes when the SSD's BDF is valid, but not attached to UIO/VFIO. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I8de639164f8674014d9e2cc31815b86ce3cba64f Reviewed-on: https://review.gerrithub.io/414063 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
8c9508f9b3
commit
8cb3341e83
@ -1062,6 +1062,17 @@ bdev_nvme_library_init(void)
|
||||
rc = -1;
|
||||
goto end;
|
||||
}
|
||||
|
||||
for (i = 0; i < probe_ctx->count; i++) {
|
||||
if (probe_ctx->trids[i].trtype != SPDK_NVME_TRANSPORT_PCIE) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!nvme_ctrlr_get(&probe_ctx->trids[i])) {
|
||||
SPDK_ERRLOG("NVMe SSD \"%s\" could not be found.\n", probe_ctx->trids[i].traddr);
|
||||
SPDK_ERRLOG("Check PCIe BDF and that it is attached to UIO/VFIO driver.\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (g_nvme_hotplug_enabled) {
|
||||
|
Loading…
Reference in New Issue
Block a user