Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 1 | From 5ee527fab06f9d33b162a6cd0c068d7b3ac2ecb0 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: Tue, 6 Mar 2018 17:28:56 +0800 |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 4 | Subject: [PATCH] invoking dd with infinite timeout |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 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/devices/partition.py | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/blivet/devices/partition.py b/blivet/devices/partition.py |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 17 | index 2d67be8..a4cf9a0 100644 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 18 | --- a/blivet/devices/partition.py |
| 19 | +++ b/blivet/devices/partition.py |
Patrick Williams | 03514f1 | 2024-04-05 07:04:11 -0500 | [diff] [blame] | 20 | @@ -677,7 +677,7 @@ class PartitionDevice(StorageDevice): |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 21 | 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: |