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

Re: [libvirt] [PATCH] qemu: fix a typo in qemuAddSharedDevice



On 21/05/13 18:40, Guannan Ren wrote:
---
  src/qemu/qemu_conf.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
index 41fe0b9..7266d3b 100644
--- a/src/qemu/qemu_conf.c
+++ b/src/qemu/qemu_conf.c
@@ -1184,7 +1184,7 @@ qemuAddSharedDevice(virQEMUDriverPtr driver,
      if (dev->type == VIR_DOMAIN_DEVICE_DISK) {
          disk = dev->data.disk;
- if (disk->shared ||
+        if (!disk->shared ||
              !disk->src ||
              (disk->type != VIR_DOMAIN_DISK_TYPE_BLOCK &&
               !(disk->type == VIR_DOMAIN_DISK_TYPE_VOLUME &&

ACK.


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