Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:openSUSE:Factory:rpmlint:tests
parted
libparted-avoid-libdevice-mapper-warnings.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libparted-avoid-libdevice-mapper-warnings.patch of Package parted
From: Petr Uzel <petr.uzel@suse.cz> Subject: libparted: Avoid libdevice-mapper warnings Patch-mainline: no, custom SUSE patch --- libparted/arch/linux.c | 6 ++++++ 1 file changed, 6 insertions(+) Index: parted-3.3/libparted/arch/linux.c =================================================================== --- parted-3.3.orig/libparted/arch/linux.c +++ parted-3.3/libparted/arch/linux.c @@ -2852,6 +2852,12 @@ _dm_remove_partition(PedDisk* disk, int goto err; } close (fd); + /* After we closed the fd, udev starts sniffing it, rendering the device busy for a moment + * This is not fatal since we're going to retry anyway, but produces bogus warnings + * from libdevice-mapper. + * Avoid this by giving udev a moment to release the device + */ + usleep(100000); struct dm_task *task = dm_task_create(DM_DEVICE_REMOVE); if (!task) goto err;
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