Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 42d8e57c748951098534bf7f52c4ebc790ef66e9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Fri, 16 Jun 2017 15:43:00 +0800 |
| 4 | Subject: [PATCH 10/11] invoking mkfs with infinite timeout |
| 5 | |
| 6 | This large timeout is needed when running on machines with |
| 7 | lots of disks, or with slow disks. |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 12 | --- |
| 13 | blivet/tasks/fsmkfs.py | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/blivet/tasks/fsmkfs.py b/blivet/tasks/fsmkfs.py |
| 17 | index ad166aa..7bf5075 100644 |
| 18 | --- a/blivet/tasks/fsmkfs.py |
| 19 | +++ b/blivet/tasks/fsmkfs.py |
| 20 | @@ -170,7 +170,7 @@ class FSMkfs(task.BasicApplication, FSMkfsTask): |
| 21 | options = options or [] |
| 22 | cmd = self._mkfs_command(options, label, set_uuid) |
| 23 | try: |
| 24 | - ret = util.run_program(cmd) |
| 25 | + ret = util.run_program(cmd, timeout=-1) |
| 26 | except OSError as e: |
| 27 | raise FSError(e) |
| 28 | |
| 29 | -- |
| 30 | 2.7.4 |
| 31 | |