]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: migration: Properly note that non-shared-storage migration uses a blockjob
authorPeter Krempa <pkrempa@redhat.com>
Thu, 18 Oct 2018 11:11:08 +0000 (13:11 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 17 Jan 2019 16:12:50 +0000 (17:12 +0100)
Internally we do a 'block-copy' to accomodate non-shared storage
migration but the code did not fill in that the block job was active on
the disk when starting the copy job. Since we handle block jobs finishes
regardless of having it registered it's not a problem but soon will
become one.

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

index 8720b343119b21fbc713a7f2111973f5fd9e483f..5d2eb60f0382dbda5073d84d9d6dce0f16396391 100644 (file)
@@ -977,6 +977,7 @@ qemuMigrationSrcNBDStorageCopy(virQEMUDriverPtr driver,
 
         VIR_FREE(diskAlias);
         diskPriv->migrating = true;
+        diskPriv->blockjob->started = true;
 
         if (virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm, driver->caps) < 0) {
             VIR_WARN("Failed to save status on vm %s", vm->def->name);