]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuMigrationSrcBeginPhase: Properly report error when non-shared storage migration...
authorPeter Krempa <pkrempa@redhat.com>
Wed, 9 Aug 2023 12:10:14 +0000 (14:10 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 10 Aug 2023 12:53:26 +0000 (14:53 +0200)
When VIR_MIGRATE_TUNNELLED is used without
VIR_MIGRATE_NON_SHARED_DISK/VIR_MIGRATE_NON_SHARED_INC
an error was reported without actually returning failure.

This was caused by a refactor which dropped many error paths.

Fixes: 6111b235224
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c

index ed41a038515bf273a2712aae45feae7d754cb052..a3fe6be4e97fcbdc1c15d1071e53c8fce1513b9b 100644 (file)
@@ -2617,6 +2617,7 @@ qemuMigrationSrcBeginPhase(virQEMUDriver *driver,
         if (flags & VIR_MIGRATE_TUNNELLED) {
             virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
                            _("migration of non-shared storage is not supported with tunnelled migration and this QEMU"));
+            return NULL;
         }
 
         if (nmigrate_disks) {