Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:Update
mdadm.7129
1004-mdadm-wait-for-remove.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1004-mdadm-wait-for-remove.patch of Package mdadm.7129
Subject: mdadm: wait for remove References: bsc#974154 --- Manage.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) --- a/Manage.c +++ b/Manage.c @@ -1083,7 +1083,15 @@ int Manage_remove(struct supertype *tst, /* device has been removed and we don't know * the major:minor number */ - int n = write(sysfd, "remove", 6); + int n; + int slpcnt = 30; + do { + n = write(sysfd, "remove", 6); + if (n != -1 || errno != EBUSY) + break; + sleep(1); + } while (--slpcnt > 0); + if (n != 6) err = -1; else
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor