Re: [PATCH v2 06/11] Fix flags passed to virDomainDefParseString by XenAPI driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 08, 2015 at 15:48:17 +0000, Daniel Berrange wrote:
> The XenAPI driver was passing the flags for
> virDomainCreateXML straight into the virDomainDefParseString
> method, even though they expect totally different sets of
> flags. It should have been using VIR_DOMAIN_XML_INACTIVE
> ---
>  src/xenapi/xenapi_driver.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c
> index fbb2f23..5f4363d 100644
> --- a/src/xenapi/xenapi_driver.c
> +++ b/src/xenapi/xenapi_driver.c
> @@ -554,7 +554,7 @@ xenapiDomainCreateXML(virConnectPtr conn,
>      virDomainDefPtr defPtr = virDomainDefParseString(xmlDesc,
>                                                       priv->caps, priv->xmlopt,
>                                                       1 << VIR_DOMAIN_VIRT_XEN,
> -                                                     flags);
> +                                                     VIR_DOMAIN_XML_INACTIVE);
>      createVMRecordFromXml(conn, defPtr, &record, &vm);
>      virDomainDefFree(defPtr);
>      if (record) {
> @@ -1728,7 +1728,7 @@ xenapiDomainDefineXMLFlags(virConnectPtr conn, const char *xml, unsigned int fla
>      virDomainDefPtr defPtr = virDomainDefParseString(xml,
>                                                       priv->caps, priv->xmlopt,
>                                                       1 << VIR_DOMAIN_VIRT_XEN,
> -                                                     0);
> +                                                     VIR_DOMAIN_XML_INACTIVE);
>      if (!defPtr)
>          return NULL;
>  

ACK

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]