Commit c73c9018 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Increased timeout for parted to deal with linux kernel partition table to...

Increased timeout for parted to deal with linux kernel partition table to avoid failures on slow systems
parent 15c6df5b
......@@ -2,6 +2,7 @@ all:
tar xf parted-3.3.tar.xz
cd parted-3.3 && ./configure --prefix=/usr --disable-static
patch -Np1 -d parted-3.3 < parted-3.3-tests.patch
patch -Np1 -d parted-3.3 < parted-3.3-slow_system.patch
$(MAKE) -C parted-3.3
$(MAKE) -C parted-3.3/doc html
cd parted-3.3 && makeinfo --html -o doc/html doc/parted.texi
......
diff -uNr parted-3.3/libparted/arch/linux.c parted-3.3-slow_system/libparted/arch/linux.c
--- parted-3.3/libparted/arch/linux.c 2019-10-10 22:58:51.000000000 +0000
+++ parted-3.3-slow_system/libparted/arch/linux.c 2020-07-19 00:17:19.022015675 +0000
@@ -3147,7 +3147,7 @@
/* Attempt to remove the partition, retrying for
up to max_sleep_seconds upon any failure due to EBUSY. */
unsigned int sleep_microseconds = 10000;
- unsigned int max_sleep_seconds = 1;
+ unsigned int max_sleep_seconds = 4;
unsigned int n_sleep = (max_sleep_seconds
* 1000000 / sleep_microseconds);
do {
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment