blob: 13c2933f0ac8f3a04c9a3c4b562016041290acc1 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 21ca2b859a49e96a230d55a7866dfc7ed5d1366c Mon Sep 17 00:00:00 2001
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08002From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Tue, 6 Mar 2018 17:28:56 +0800
4Subject: [PATCH 11/11] invoking dd 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---
13 blivet/devices/partition.py | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/blivet/devices/partition.py b/blivet/devices/partition.py
Brad Bishop19323692019-04-05 15:28:33 -040017index 623e1c9..141d8ad 100644
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080018--- a/blivet/devices/partition.py
19+++ b/blivet/devices/partition.py
Brad Bishop19323692019-04-05 15:28:33 -040020@@ -618,7 +618,7 @@ class PartitionDevice(StorageDevice):
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080021 cmd = ["dd", "if=/dev/zero", "of=%s" % device, "bs=%d" % bs,
22 "seek=%d" % start, "count=%d" % count]
23 try:
24- util.run_program(cmd)
25+ util.run_program(cmd, timeout=-1)
26 except OSError as e:
27 log.error(str(e))
28 finally:
29--
302.7.4
31