]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
fabrics: add option to supply keep-alive-timeout for connect-all
authorJohannes Thumshirn <jthumshirn@suse.de>
Wed, 25 Apr 2018 17:49:23 +0000 (11:49 -0600)
committerKeith Busch <keith.busch@intel.com>
Wed, 25 Apr 2018 17:55:33 +0000 (11:55 -0600)
Currently we can't supply a keep-alive-timeout when doing a nvme
connect-all, but we can supply it when doing nvme connect.

Bring connect-all in line with connect.

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 03adac56f9aa5e336eaf889827f55fba9367ac23..217268f975599c17d47f06f0cb05d585da7c915e 100644 (file)
@@ -14,6 +14,7 @@ SYNOPSIS
                [--trsvcid=<trsvcid>      | -s <trsvcid>]
                [--host-traddr=<traddr>   | -w <traddr>]
                [--hostnqn=<hostnqn>      | -q <hostnqn>]
+               [--keep-alive-tmo=<#>     | -k <#>]
                [--raw=<filename>         | -r <filename>]
 
 DESCRIPTION
@@ -86,6 +87,10 @@ OPTIONS
        Overrides the default number of elements in the I/O queues created
        by the driver.
 
+-k <#>::
+--keep-alive-tmo=<#>::
+       Overrides the default keep alive timeout (in seconds).
+
 EXAMPLES
 --------
 * Connect to all records returned by the Discover Controller with IP4 address
index 62bd3be1636d12007f4d7543e66095a107d965ab..7e9d56c61c45626ceee6dee35ac070c25422cd79 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -821,6 +821,7 @@ int discover(const char *desc, int argc, char **argv, bool connect)
                {"queue-size",  'Q', "LIST", CFG_STRING, &cfg.queue_size,  required_argument, "number of io queue elements to use (default 128)" },
                {"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" },
                {NULL},
        };