]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Increase default format timeout
authorKeith Busch <keith.busch@intel.com>
Fri, 27 Oct 2017 16:35:51 +0000 (10:35 -0600)
committerKeith Busch <keith.busch@intel.com>
Fri, 27 Oct 2017 16:35:51 +0000 (10:35 -0600)
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

diff --git a/nvme.c b/nvme.c
index 57eeb18959c5b14daf1a694128c05bb0f1c8067f..9ac6a3c087510cdecf9881e8b9a8bc809b57ec6e 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -1718,7 +1718,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,