From: Matias Bjørling Date: Wed, 15 Feb 2017 14:57:32 +0000 (+0100) Subject: lightnvm: default to -1 on lun begin and end X-Git-Tag: v1.2~25^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a2c32fadcab588c171a32db49f04554cba7de2ae;p=users%2Fsagi%2Fnvme-cli.git lightnvm: default to -1 on lun begin and end 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 --- diff --git a/lnvm-nvme.c b/lnvm-nvme.c index d12ac3ed..648df3b2 100644 --- a/lnvm-nvme.c +++ b/lnvm-nvme.c @@ -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[] = {