]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Fix a bug where CSI was not handled in nvme create-ns
authorAndreas Hindborg <andreas.hindborg@wdc.com>
Wed, 6 Oct 2021 11:11:21 +0000 (04:11 -0700)
committerKeith Busch <kbusch@kernel.org>
Wed, 6 Oct 2021 11:11:21 +0000 (04:11 -0700)
Signed-off-by: Andreas Hindborg <andreas.hindborg@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
nvme.c

diff --git a/nvme.c b/nvme.c
index bfb2cf11cd094bbb6b5d900201186261aebc17e4..04574269370c2955b79abf67e8d1ea1bb5cd8ad2 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -1779,7 +1779,7 @@ static int create_ns(int argc, char **argv, struct command *cmd, struct plugin *
 
        nvme_init_id_ns(&ns, cfg.nsze, cfg.ncap, cfg.flbas, cfg.dps, cfg.nmic,
                         cfg.anagrpid, cfg.nvmsetid);
-       err = nvme_ns_mgmt_create(fd, &ns, &nsid, cfg.timeout);
+       err = nvme_ns_mgmt_create(fd, &ns, &nsid, cfg.timeout, cfg.csi);
        if (!err)
                printf("%s: Success, created nsid:%d\n", cmd->name, nsid);
        else if (err > 0)