[libvirt] [PATCH] Workaround startup race condition

Adam Walters adam at pandorasboxen.com
Sat Dec 7 07:02:59 UTC 2013


This patch works around a race condition on libvirt start. It feels a
little hackish to me, but I have a hard time letting go of problems, so
I had to at least try and implement something before going to sleep. I'd
love some comments on the workaround, and welcome any improvement
suggestions, as well.

Please note that I implemented this in qemu_conf.c because it is the only
place in the codebase I found VIR_DOMAIN_DISK_TYPE_VOLUME used, which tells
me that only qemu has storage pool support at this time (not to mention that
the qemu code is what I've become familiar with. It also doesn't hurt that I
only have qemu configured and ready to go for testing, too).

Adam Walters (1):
  qemu: conf: Work around race condition on libvirt start

 src/qemu/qemu_conf.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

-- 
1.8.4.2




More information about the libvir-list mailing list