diff options
Diffstat (limited to 'meta-python/recipes-extended/python-blivet/python3-blivet/0011-invoking-fsck-with-infinite-timeout.patch')
| -rw-r--r-- | meta-python/recipes-extended/python-blivet/python3-blivet/0011-invoking-fsck-with-infinite-timeout.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-python/recipes-extended/python-blivet/python3-blivet/0011-invoking-fsck-with-infinite-timeout.patch b/meta-python/recipes-extended/python-blivet/python3-blivet/0011-invoking-fsck-with-infinite-timeout.patch new file mode 100644 index 0000000000..c61fe01b94 --- /dev/null +++ b/meta-python/recipes-extended/python-blivet/python3-blivet/0011-invoking-fsck-with-infinite-timeout.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From e9ab4376a18cc1bd413c000b036320833eec80d7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
| 3 | Date: Thu, 1 Jun 2017 16:05:27 +0800 | ||
| 4 | Subject: [PATCH 11/13] invoking fsck 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/fsck.py | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/blivet/tasks/fsck.py b/blivet/tasks/fsck.py | ||
| 17 | index c4214dc..e13ac6b 100644 | ||
| 18 | --- a/blivet/tasks/fsck.py | ||
| 19 | +++ b/blivet/tasks/fsck.py | ||
| 20 | @@ -77,7 +77,7 @@ class FSCK(task.BasicApplication, fstask.FSTask): | ||
| 21 | raise FSError("\n".join(error_msgs)) | ||
| 22 | |||
| 23 | try: | ||
| 24 | - rc = util.run_program(self._fsck_command) | ||
| 25 | + rc = util.run_program(self._fsck_command, timeout=-1) | ||
| 26 | except OSError as e: | ||
| 27 | raise FSError("filesystem check failed: %s" % e) | ||
| 28 | |||
| 29 | -- | ||
| 30 | 2.7.4 | ||
| 31 | |||
