]> git.proxmox.com Git - qemu.git/blobdiff - blockdev.c
Open 2.0 development tree
[qemu.git] / blockdev.c
index 330aa4a3a4edcf2de146685841589e6671c8bfb7..44755e1a5d2f298d17073d5c4b19acb844bb2793 100644 (file)
@@ -2021,6 +2021,9 @@ void qmp_drive_mirror(const char *device, const char *target,
     if (!source && sync == MIRROR_SYNC_MODE_TOP) {
         sync = MIRROR_SYNC_MODE_FULL;
     }
+    if (sync == MIRROR_SYNC_MODE_NONE) {
+        source = bs;
+    }
 
     size = bdrv_getlength(bs);
     if (size < 0) {