[libvirt] PATCH: More robust name & UUID uniqueness checking for QEMU

Daniel Veillard veillard at redhat.com
Wed May 6 16:32:05 UTC 2009


On Thu, Apr 30, 2009 at 03:05:01PM +0100, Daniel P. Berrange wrote:
> When defining a VM config, we need to apply the following logi
> 
>  - If existing VM has same UUID
>       - If name also matches => allow
>       - Else => raise error
> 
>  - Else
>       - If name matches => raise error
>       - Else => allow
> 
> When creating a live VM, or restoring a VM we need to apply similar,
> but slightly different logic
> 
>  - If existing VM has same UUID
>       - If name also matches
>            - If existing VM is running => raise error
>            - Else => allow
>       - Else => raise error
> 
>  - Else
>       - If name matches => raise error
>       - Else => allow
> 
> This patch applies those checks for the QEMU driver

  Yes this makes sense and the patch looks fine,

    ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel at veillard.com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/




More information about the libvir-list mailing list