Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | From 33844f6773a676bd57240954e402ae9a843663a4 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 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> |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 12 | |
| 13 | Rebase for python3-blivet 3.4.0. |
| 14 | |
| 15 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 16 | --- |
| 17 | blivet/tasks/fsmkfs.py | 2 +- |
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 19 | |
| 20 | diff --git a/blivet/tasks/fsmkfs.py b/blivet/tasks/fsmkfs.py |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 21 | index e4a6aaa8..9730f7e5 100644 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 22 | --- a/blivet/tasks/fsmkfs.py |
| 23 | +++ b/blivet/tasks/fsmkfs.py |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 24 | @@ -203,7 +203,7 @@ class FSMkfs(task.BasicApplication, FSMkfsTask): |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 25 | options = options or [] |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 26 | cmd = self._mkfs_command(options, label, set_uuid, nodiscard) |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 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 | -- |
| 34 | 2.7.4 |
| 35 | |