Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
parted
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
parted
Commits
9fc344ec
Commit
9fc344ec
authored
Nov 06, 2024
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed timeout of partitions re-read on slow machines
parent
6881e2d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
Makefile
Makefile
+2
-1
parted-3.4-fix_sync_timeout.patch
parted-3.4-fix_sync_timeout.patch
+12
-0
No files found.
Makefile
View file @
9fc344ec
all
:
all
:
tar
xf parted-3.4.tar.xz
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-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
$(MAKE)
-C
parted-3.4/doc html
$(MAKE)
-C
parted-3.4/doc html
cd
parted-3.4
&&
makeinfo
--html
-o
doc/html doc/parted.texi
cd
parted-3.4
&&
makeinfo
--html
-o
doc/html doc/parted.texi
...
...
parted-3.4-fix_sync_timeout.patch
0 → 100644
View file @
9fc344ec
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 {
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment