]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuMigrationBeginPhase: Check for 'drive-mirror' for NBD
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Nov 2013 13:08:36 +0000 (14:08 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Nov 2013 13:15:13 +0000 (14:15 +0100)
So far we are checking if qemu supports 'nbd-server-start'. This,
however, makes no sense on the source as nbd-server-* is used on the
destination. On the source the 'drive-mirror' is used instead.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration.c

index 7d8b7274c718bb053de2b8b34d77f4ddbe88bb1e..166fbb9e5c48ac11e8a96a6fdb40f659ce31c631 100644 (file)
@@ -1987,7 +1987,7 @@ static char
         goto cleanup;
 
     if (flags & (VIR_MIGRATE_NON_SHARED_DISK | VIR_MIGRATE_NON_SHARED_INC) &&
-        virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_NBD_SERVER)) {
+        virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_DRIVE_MIRROR)) {
         /* TODO support NBD for TUNNELLED migration */
         if (flags & VIR_MIGRATE_TUNNELLED) {
             VIR_WARN("NBD in tunnelled migration is currently not supported");