Re: [PATCH] libvirt: fix a simple bug in virDomainSetMemoryFlags()

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

 



On 03/15/2011 03:49 AM, Taku Izumi wrote:
This patch fix a simple bug in virDomainSetMemoryFlags function.
The patch sent before lacks the consideration of the case
where the driver doesn't support virDomainSetMemoryFlags API.


Signed-off-by: Taku Izumi<izumi.taku@xxxxxxxxxxxxxx>
---
  src/libvirt.c |    2 ++
  1 file changed, 2 insertions(+)

Index: libvirt/src/libvirt.c
===================================================================
--- libvirt.orig/src/libvirt.c
+++ libvirt/src/libvirt.c
@@ -2902,6 +2902,8 @@ virDomainSetMemoryFlags(virDomainPtr dom
          return ret;
      }

+    virLibConnError(VIR_ERR_NO_SUPPORT, __FUNCTION__);
+
  error:
      virDispatchError(domain->conn);
      return -1;

ACK and pushed.

--
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]