]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Don't squash file permissions when migration fails
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 25 Jun 2010 13:04:57 +0000 (09:04 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 25 Jun 2010 14:19:20 +0000 (10:19 -0400)
If an active migration operation fails, or is cancelled by the
admin, the QEMU on the destination is shutdown and the one on
the source continues running. It is important in shutting down
the QEMU on the destination, the security drivers don't reset
the file labelling/permissions.

* src/qemu/qemu_driver.c: Don't reset labelling/permissions
  on migration abort

src/qemu/qemu_driver.c

index 1257c705117fad386a927e94204f897e6e9f081d..6ae4e8c68815038ed6c71a0d0c1976737b166f56 100644 (file)
@@ -11230,7 +11230,7 @@ qemudDomainMigrateFinish2 (virConnectPtr dconn,
             goto endjob;
         }
     } else {
-        qemudShutdownVMDaemon(driver, vm, 0);
+        qemudShutdownVMDaemon(driver, vm, 1);
         event = virDomainEventNewFromObj(vm,
                                          VIR_DOMAIN_EVENT_STOPPED,
                                          VIR_DOMAIN_EVENT_STOPPED_FAILED);