mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
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:
parent
17dedf7cb5
commit
6d9743158c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user