]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-discover: sanitize options
authorHannes Reinecke <hare@suse.de>
Fri, 17 Aug 2018 07:29:05 +0000 (09:29 +0200)
committerKeith Busch <keith.busch@intel.com>
Fri, 17 Aug 2018 22:00:15 +0000 (16:00 -0600)
The discovery controller doesn't accept any KATO or number of I/O
queue changes, but we do want to change the reconnect delay and
the controller loss timeout.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Documentation/nvme-discover.txt
fabrics.c

index 4fcf1caf6f971c17ed612d052d36b2c62820f945..51d63e4a8b3f0fec7dc6626923d8e9684753bdf7 100644 (file)
@@ -14,7 +14,9 @@ SYNOPSIS
                [--trsvcid=<trsvcid>      | -s <trsvcid>]
                [--host-traddr=<traddr>   | -w <traddr>]
                [--hostnqn=<hostnqn>      | -q <hostnqn>]
-               [--raw=<filename>         | -r <filename>]
+               [--raw=<filename>         | -r <filename>]
+               [--reconnect-delay=<#>    | -c <#>]
+               [--ctrl-loss-tmo=<#>      | -l <#>]
 
 DESCRIPTION
 -----------
@@ -99,6 +101,15 @@ OPTIONS
        and dump it to a raw binary file. By default 'nvme discover' will
        dump the output to stdout.
 
+-c <#>::
+--reconnect-delay=<#>::
+       Overrides the default delay (in seconds) before reconnect is attempted
+       after a connect loss.
+
+-l <#>::
+--ctrl-loss-tmo=<#>::
+       Overrides the default controller loss timeout period (in seconds).
+
 EXAMPLES
 --------
 * Query the Discover Controller with IP4 address 192.168.1.3 for all
index 28e97c5aea3b0b0b4590acd9700481fb769292bd..9bf2594ef3b157ffb6c7148358bd27e4368f7d1b 100644 (file)
--- a/fabrics.c
+++ b/fabrics.c
@@ -830,12 +830,10 @@ int discover(const char *desc, int argc, char **argv, bool connect)
                {"host-traddr", 'w', "LIST", CFG_STRING, &cfg.host_traddr, required_argument, "host traddr (e.g. FC WWN's)" },
                {"hostnqn",     'q', "LIST", CFG_STRING, &cfg.hostnqn,     required_argument, "user-defined hostnqn (if default not used)" },
                {"hostid",      'I', "LIST", CFG_STRING, &cfg.hostid,      required_argument, "user-defined hostid (if default not used)"},
-               {"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" },
+               {"reconnect-delay", 'c', "LIST", CFG_STRING, &cfg.reconnect_delay, required_argument, "reconnect timeout period in seconds" },
                {"ctrl-loss-tmo",   'l', "LIST", CFG_STRING, &cfg.ctrl_loss_tmo,   required_argument, "controller loss timeout period in seconds" },
-
                {NULL},
        };