Skip to content

Commit a138f6e

Browse files
committed
nvme: add fallback support for block vs char device to verify command
Also the verify commands depends operating on a block device. The kernel lacks the fallback support in the NVME_IOCTL_IO64_CMD to lookup the namespace. Signed-off-by: Daniel Wagner <[email protected]>
1 parent e80774a commit a138f6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nvme.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8539,6 +8539,10 @@ static int verify_cmd(int argc, char **argv, struct command *acmd, struct plugin
85398539
if (err)
85408540
return err;
85418541

8542+
err = open_fallback_chardev(ctx, cfg.nsid, &hdl);
8543+
if (err)
8544+
return err;
8545+
85428546
if (cfg.prinfo > 0xf)
85438547
return -EINVAL;
85448548

0 commit comments

Comments
 (0)