[Libvirt-cim] [PATCH V6 21/21] libxkutil: set domain->dype to unknown by default

Wenchao Xia xiawenc at linux.vnet.ibm.com
Mon Mar 25 10:54:58 UTC 2013


  Sorry, This is a missed patch. Since Domain_XENPV was default value
and in resource adding method it is not set causing the script will
be added xml string, so change the default value to UNKNOWN.
>    It should not be default as XENPV, which will bring trouble when this value is
> not set. One case is script section in bridge xml generation, in resource add
> method it will be always added since this value is XENPV, so change it to unknown.
> 
> Signed-off-by: Wenchao Xia <xiawenc at linux.vnet.ibm.com>
> ---
>   libxkutil/device_parsing.h |    7 ++++---
>   1 files changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/libxkutil/device_parsing.h b/libxkutil/device_parsing.h
> index d652f0f..6f6b0b4 100644
> --- a/libxkutil/device_parsing.h
> +++ b/libxkutil/device_parsing.h
> @@ -147,10 +147,11 @@ struct lxc_os_info {
>   };
> 
>   struct domain {
> -        enum { DOMAIN_XENPV,
> +        enum { DOMAIN_UNKNOWN,
> +               DOMAIN_XENPV,
>                  DOMAIN_XENFV,
> -               DOMAIN_KVM,
> -               DOMAIN_QEMU,
> +               DOMAIN_KVM,
> +               DOMAIN_QEMU,
>                  DOMAIN_LXC } type;
>           char *name;
>           char *typestr; /*xen, kvm, etc */
> 


-- 
Best Regards

Wenchao Xia




More information about the Libvirt-cim mailing list