+75
−0
+45
−5
+1
−0
+2
−0
Loading
Currently, users cannot get any failure information if spdk_nvme_probe or spdk_nvme_probe_async fails to attach probed devices. This patch adds two functions, spdk_nvme_probe_ext and spdk_nvme_probe_async_ext, that accept an extra attach_fail_cb parameter compared to their existing counterparts. For each device that is probed but unable to attach, attach_fail_cb will be called with the trid of the device and an error code describing the failure reason to inform user about the failure. Fixes #3106 Change-Id: I55a69086b85987d9e0f5a31d1321fe3e006c2de7 Signed-off-by:Jinlong Chen <chenjinlong.cjl@alibaba-inc.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19872 Reviewed-by:
GangCao <gang.cao@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>