Don't squash file permissions when migration fails

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
This commit is contained in:
Daniel P. Berrange 2010-06-25 09:04:57 -04:00
parent 17dedf7cb5
commit 6d9743158c

View 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);