diff --git a/blockdev.c b/blockdev.c index 330aa4a3a4..44755e1a5d 100644 --- a/blockdev.c +++ b/blockdev.c @@ -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) {