[libvirt] [PATCH] libvirt-override: fix flags mutually exclusize

Jie Wang posted 1 patch 4 years, 2 months ago
Failed in applying to current master (apply log)
libvirt-override.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

[libvirt] [PATCH] libvirt-override: fix flags mutually exclusize

Posted by Jie Wang 4 years, 2 months ago
Because of virDomainGetBlkioParameters is called in libvirt_virDomainSetBlkioParameters,
it will result in the two flags 'VIR_DOMAIN_AFFECT_LIVE' and 'VIR_DOMAIN_AFFECT_CONFIG'
are mutually exclusive in libvirt_virDomainSetBlkioParameters, it's unreasonable,
So ues this patch to fix it.

Signed-off-by: Jie Wang <wangjie88@huawei.com>
---
 libvirt-override.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libvirt-override.c b/libvirt-override.c
index 9e40f00..7bdc09c 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -727,7 +727,7 @@ libvirt_virDomainSetBlkioParameters(PyObject *self ATTRIBUTE_UNUSED,
     }
 
     LIBVIRT_BEGIN_ALLOW_THREADS;
-    i_retval = virDomainGetBlkioParameters(domain, NULL, &nparams, flags);
+    i_retval = virDomainGetBlkioParameters(domain, NULL, &nparams, 0);
     LIBVIRT_END_ALLOW_THREADS;
 
     if (i_retval < 0)
@@ -743,7 +743,7 @@ libvirt_virDomainSetBlkioParameters(PyObject *self ATTRIBUTE_UNUSED,
         return PyErr_NoMemory();
 
     LIBVIRT_BEGIN_ALLOW_THREADS;
-    i_retval = virDomainGetBlkioParameters(domain, params, &nparams, flags);
+    i_retval = virDomainGetBlkioParameters(domain, params, &nparams, 0);
     LIBVIRT_END_ALLOW_THREADS;
 
     if (i_retval < 0) {
-- 
1.9.5.msysgit.1




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