Re: [Libvir] [PATCH] Allow virDomainDefine to overwrite existing inactive domains for xen 3.0.3 userspace installations

2007-05-02 Thread Daniel P. Berrange
On Tue, May 01, 2007 at 01:30:23PM -0400, Hugh Brock wrote: > +if (!(olddomain = virGetDomain(conn, value->str, uuid))) > +goto error; > + > +if (olddomain->id != -1) { > +xenXMError(conn, VIR_ERR_INTERNAL_ERROR, "can't overwrite an > active domain"); > +

Re: [Libvir] [PATCH] Allow virDomainDefine to overwrite existing inactive domains for xen 3.0.3 userspace installations

2007-05-02 Thread Richard W.M. Jones
Hugh Brock wrote: virDomainDefineXML should overwrite an existing inactive domain config if it finds one; it does this successfully for later (post 3.0.3) xen versions. However on xen 3.0.3 overwriting an existing config would fail with a name conflict. This patch allows the overwrite, removing

[Libvir] [PATCH] Allow virDomainDefine to overwrite existing inactive domains for xen 3.0.3 userspace installations

2007-05-01 Thread Hugh Brock
virDomainDefineXML should overwrite an existing inactive domain config if it finds one; it does this successfully for later (post 3.0.3) xen versions. However on xen 3.0.3 overwriting an existing config would fail with a name conflict. This patch allows the overwrite, removing the prior config