]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: fix a typo in qemuAddSharedDevice
authorGuannan Ren <gren@redhat.com>
Tue, 21 May 2013 10:38:57 +0000 (18:38 +0800)
committerGuannan Ren <gren@redhat.com>
Tue, 21 May 2013 10:38:57 +0000 (18:38 +0800)
src/qemu/qemu_conf.c

index 41fe0b9587075a86679909e4f30e77e71d9b76b0..7266d3ba981dbce8aafbed849d294a6b3e4d816b 100644 (file)
@@ -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 &&