Commit 9fc344ec authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Fixed timeout of partitions re-read on slow machines

parent 6881e2d8
all:
tar xf parted-3.4.tar.xz
cd parted-3.4 && ./configure --prefix=/usr --disable-static
patch -Np1 -d parted-3.4 < parted-3.4-fixed_test.patch
patch -Np1 -d parted-3.4 < parted-3.4-fix_sync_timeout.patch
cd parted-3.4 && ./configure --prefix=/usr --disable-static
$(MAKE) -C parted-3.4
$(MAKE) -C parted-3.4/doc html
cd parted-3.4 && makeinfo --html -o doc/html doc/parted.texi
......
diff -uNr parted-3.4/libparted/arch/linux.c parted-3.4-fix_sync_timeout/libparted/arch/linux.c
--- parted-3.4/libparted/arch/linux.c 2021-01-25 19:49:56.000000000 +0000
+++ parted-3.4-fix_sync_timeout/libparted/arch/linux.c 1970-01-01 00:42:58.916001229 +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 = 3;
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