File 0020-fabrics-add-ctrl-loss-tmo-to-connect-all.patch of Package nvme-cli.10307

From 815e0dc8edc01f27a4f0e594e1f39b1130fd6b5a Mon Sep 17 00:00:00 2001
From: Johannes Thumshirn <jthumshirn@suse.de>
Date: Tue, 29 May 2018 11:32:33 +0200
Subject: fabrics: add ctrl-loss-tmo to connect-all

Git-commit: 388c9dbe86bef4d25a8818af37a3454b449ce614
References: bsc#1084379

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 | 1 +
 fabrics.c                          | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/Documentation/nvme-connect-all.txt b/Documentation/nvme-connect-all.txt
index 217268f..0fa7cda 100644
--- a/Documentation/nvme-connect-all.txt
+++ b/Documentation/nvme-connect-all.txt
@@ -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
diff --git a/fabrics.c b/fabrics.c
index 4f70072..053b04c 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -848,6 +848,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},
 	};
 
-- 
2.13.7

openSUSE Build Service is sponsored by