File 0022-Increase-default-format-timeout.patch of Package nvme-cli.10193

From 22da50b1f9bfa8172c4e8cd71d3cc4719fe028f1 Mon Sep 17 00:00:00 2001
From: Keith Busch <keith.busch@intel.com>
Date: Fri, 27 Oct 2017 10:35:51 -0600
Subject: Increase default format timeout

Git-commit: 0a8acd7985ea4dadc74b2dccd141200f6f0336e9
References: bsc#1076004

Some formats take a while, and that's okay. Don't make users remember
to increase the timeout size for it.

Signed-off-by: Keith Busch <keith.busch@intel.com>
---
 nvme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nvme.c b/nvme.c
index aecc802..af0955a 100644
--- a/nvme.c
+++ b/nvme.c
@@ -1480,7 +1480,7 @@ static int format(int argc, char **argv, struct command *cmd, struct plugin *plu
 
 	struct config cfg = {
 		.namespace_id = 0xffffffff,
-		.timeout      = 120000,
+		.timeout      = 600000,
 		.lbaf         = 0xff,
 		.ses          = 0,
 		.pi           = 0,
-- 
2.13.7

openSUSE Build Service is sponsored by