From a2c32fadcab588c171a32db49f04554cba7de2ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matias=20Bj=C3=B8rling?= Date: Wed, 15 Feb 2017 15:57:32 +0100 Subject: [PATCH] lightnvm: default to -1 on lun begin and end MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- lnvm-nvme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnvm-nvme.c b/lnvm-nvme.c index d12ac3e..648df3b 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[] = { -- 2.49.0