]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
lightnvm: default to -1 on lun begin and end
authorMatias Bjørling <matias@cnexlabs.com>
Wed, 15 Feb 2017 14:57:32 +0000 (15:57 +0100)
committerMatias Bjørling <matias@cnexlabs.com>
Wed, 15 Feb 2017 15:29:41 +0000 (16:29 +0100)
The default behavior when initializing a target without lun end and
begin is to use only the first lun of the OCSSD. Going forward, the
user shall either explicit specific the begin and end, or if not defined
for kernel 4.11 and newer, the full SSD is initialized.

Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
lnvm-nvme.c

index d12ac3ed97d626649833a478bca6f4e6aa9b2b2d..648df3b2d0b5123560aea5a228b99d4d18984f77 100644 (file)
@@ -141,8 +141,8 @@ static int lnvm_create_tgt(int argc, char **argv, struct command *cmd, struct pl
                .devname = "",
                .tgtname = "",
                .tgttype = "",
-               .lun_begin = 0,
-               .lun_end = 0,
+               .lun_begin = -1,
+               .lun_end = -1,
        };
 
        const struct argconfig_commandline_options command_line_options[] = {