Re: [libvirt] PATCH: Fix redetection of transient QEMU VMs on daemon restarts

2009-06-04 Thread Daniel Veillard
On Wed, Jun 03, 2009 at 05:42:20PM +0100, Daniel P. Berrange wrote: On Tue, Jun 02, 2009 at 03:55:27PM +0200, Daniel Veillard wrote: On Wed, May 27, 2009 at 04:58:44PM +0100, Daniel P. Berrange wrote: [...] +xmlXPathContextPtr ctxt) +{ +

Re: [libvirt] PATCH: Fix redetection of transient QEMU VMs on daemon restarts

2009-06-03 Thread Daniel P. Berrange
On Tue, Jun 02, 2009 at 03:55:27PM +0200, Daniel Veillard wrote: On Wed, May 27, 2009 at 04:58:44PM +0100, Daniel P. Berrange wrote: [...] +xmlXPathContextPtr ctxt) +{ +char *tmp = NULL; +long val; +xmlNodePtr config; +

Re: [libvirt] PATCH: Fix redetection of transient QEMU VMs on daemon restarts

2009-06-02 Thread Daniel Veillard
On Wed, May 27, 2009 at 04:58:44PM +0100, Daniel P. Berrange wrote: When the libvirtd daemon starts up, it reads all config files from /etc/libvirt/qemu. For each config file loaded, it then probes for a pidfile / live status XML config in /var/run/libvirt/qemu. In retrospect there is an

[libvirt] PATCH: Fix redetection of transient QEMU VMs on daemon restarts

2009-05-27 Thread Daniel P. Berrange
When the libvirtd daemon starts up, it reads all config files from /etc/libvirt/qemu. For each config file loaded, it then probes for a pidfile / live status XML config in /var/run/libvirt/qemu. In retrospect there is an obvious problem with this approach: it misses all transient VMs which