Skip to content

Commit 0037362

Browse files
committed
fabrics: open transport handle for discovery controller
The discovery controller is using the identify command and also the get log page command. Thus, create the transport handle for the discovery controller. Signed-off-by: Daniel Wagner <[email protected]>
1 parent f5b985f commit 0037362

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

libnvme/src/nvme/fabrics.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,6 +2313,12 @@ static int nvmf_create_discovery_ctrl(struct nvme_global_ctx *ctx,
23132313
return -ENOMEM;
23142314
}
23152315

2316+
ret = nvme_open(ctx, c->name, &c->hdl);
2317+
if (ret) {
2318+
nvme_msg(ctx, LOG_ERR, "failed to open %s\n", c->name);
2319+
return ret;
2320+
}
2321+
23162322
/* Find out the name of discovery controller */
23172323
ret = nvme_ctrl_identify(c, id);
23182324
if (ret) {

0 commit comments

Comments
 (0)