[libvirt] [PATCH] Refresh /etc/xen if inotify wasn't initialized

Cole Robinson crobinso at redhat.com
Tue Aug 4 16:29:02 UTC 2009


If libvirt was built against inotify, but an API user isn't using domain
events (virsh, virt-manager), the xen xm driver doesn't poll /etc/xen
for new config files. This means that domains created or deleted on
other libvirt connections aren't reflected in the original connection
(but they will show up for all newly opened connections). This causes
newly created VMs to disappear from virt-manager < 0.8.0 once they are
shutdown, since VMs were installed on a separate connection.

The attached patch refreshes /etc/xen in all cases, unless inotify was
successfully initialized (user is using domain events).

Thanks,
Cole
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-xm-inotify-refresh.patch
Type: text/x-patch
Size: 3289 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090804/c2a929f3/attachment-0001.bin>


More information about the libvir-list mailing list