Skip to content

Commit 6b1aae3

Browse files
committed
nvme: enable support for --no-ioclt-probing for open_exclusive
open_exclusive misses to honor the global --no-ioctl-probing command line option. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 8ab9265 commit 6b1aae3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nvme.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ int open_exclusive(struct libnvme_global_ctx **ctx,
415415
if (!ctx_new)
416416
return -ENOMEM;
417417

418+
libnvme_set_ioctl_probing(ctx_new,
419+
!argconfig_parse_seen(opts, "no-ioctl-probing"));
420+
418421
ret = get_transport_handle(ctx_new, argc, argv, flags, &hdl_new);
419422
if (ret) {
420423
libnvme_free_global_ctx(ctx_new);

0 commit comments

Comments
 (0)