]> git.ipfire.org Git - thirdparty/libvirt.git/commit
disk: Allow settling to occur after reading partitions
authorJohn Ferlan <jferlan@redhat.com>
Thu, 24 May 2018 15:10:57 +0000 (11:10 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 25 May 2018 12:26:41 +0000 (08:26 -0400)
commite288080ae02d357412755d998bd542d4cb60c8b2
treef007249a81e7676b0f6581d27b7e77613ebceb62
parent509abc40d402a67a61aae95089c101be104a5537
disk: Allow settling to occur after reading partitions

https://bugzilla.redhat.com/show_bug.cgi?id=1400475

In order to avoid a possible error as a result of kernel interactions
with the partition helper, let's use virWaitForDevices to force things
to settle down before attempting to open and read the partition. This
is related to https://bugzilla.redhat.com/show_bug.cgi?id=1264719.

Although perhaps overkill to have too many places to settle, since
we know that the act of reading the partitions via libvirt_parthelper
will cause udev activity/events - we just need to ensure udev has
been settled before proceding with usage of the device.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/storage/storage_backend_disk.c