1From 33844f6773a676bd57240954e402ae9a843663a4 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Fri, 16 Jun 2017 15:43:00 +0800
4Subject: [PATCH 10/11] invoking mkfs with infinite timeout
5
6This large timeout is needed when running on machines with
7lots of disks, or with slow disks.
8
9Upstream-Status: Pending
10
11Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
12
13Rebase for python3-blivet 3.4.0.
14
15Signed-off-by: Kai Kang <kai.kang@windriver.com>
16---
17 blivet/tasks/fsmkfs.py | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/blivet/tasks/fsmkfs.py b/blivet/tasks/fsmkfs.py
21index e4a6aaa8..9730f7e5 100644
22--- a/blivet/tasks/fsmkfs.py
23+++ b/blivet/tasks/fsmkfs.py
24@@ -203,7 +203,7 @@ class FSMkfs(task.BasicApplication, FSMkfsTask):
25         options = options or []
26         cmd = self._mkfs_command(options, label, set_uuid, nodiscard)
27         try:
28-            ret = util.run_program(cmd)
29+            ret = util.run_program(cmd, timeout=-1)
30         except OSError as e:
31             raise FSError(e)
32
33--
342.7.4
35
36