]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
fabrics: add ctrl-loss-tmo to connect-all
authorJohannes Thumshirn <jthumshirn@suse.de>
Tue, 29 May 2018 09:32:33 +0000 (11:32 +0200)
committerKeith Busch <keith.busch@intel.com>
Mon, 4 Jun 2018 19:41:40 +0000 (13:41 -0600)
Similarly to "keep-alive-tmo" a user might want to specify the
"ctrl-loss-tmo" on connect-all as well.

Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Documentation/nvme-connect-all.txt
fabrics.c

index 217268f975599c17d47f06f0cb05d585da7c915e..0fa7cda211d4314d37d2abb9cc1fec807fe45ebd 100644 (file)
@@ -15,6 +15,7 @@ SYNOPSIS
                [--host-traddr=<traddr>   | -w <traddr>]
                [--hostnqn=<hostnqn>      | -q <hostnqn>]
                [--keep-alive-tmo=<#>     | -k <#>]
+               [--ctrl-loss-tmo=<#>      | -l <#>]
                [--raw=<filename>         | -r <filename>]
 
 DESCRIPTION
index 408afb0d453b5761c511e6cee0428e6a21aa8f74..4ae83fd5de02fb2484006e8a85093fee553f6b4e 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -850,6 +850,8 @@ int discover(const char *desc, int argc, char **argv, bool connect)
                {"nr-io-queues",'i', "LIST", CFG_STRING, &cfg.nr_io_queues,required_argument, "number of io queues to use (default is core count)" },
                {"raw",         'r', "LIST", CFG_STRING, &cfg.raw,         required_argument, "raw output file" },
                {"keep-alive-tmo",  'k', "LIST", CFG_STRING, &cfg.keep_alive_tmo,  required_argument, "keep alive timeout period in seconds" },
+               {"ctrl-loss-tmo",   'l', "LIST", CFG_STRING, &cfg.ctrl_loss_tmo,   required_argument, "controller loss timeout period in seconds" },
+
                {NULL},
        };