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

Hugh Brock hbrock at redhat.com
Tue May 1 17:30:23 UTC 2007


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 from the config hashes.

If someone more familiar than I with libvirt error handling and style 
could look at this and tell me if I've done something horribly wrong, 
I'd appreciate it.

Signed-off-by: Hugh Brock <hbrock at redhat.com>


-- 
Red Hat Virtualization Group http://redhat.com/virtualization
Hugh Brock           | virt-manager http://virt-manager.org
hbrock at redhat.com    | virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: redefine-domain-with-xm.patch
Type: text/x-patch
Size: 2408 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070501/93acd741/attachment-0001.bin>


More information about the libvir-list mailing list