1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 07:59:00 +00:00

qemu: Perform the disk WWN check only on fresh starts

Since we'd disallow migration of a guest that would have possibly
invalid config but still be able to work, relax the WWN check to be
performed only on new starts of the VM.
This commit is contained in:
Peter Krempa 2015-09-29 18:13:06 +02:00
parent ce692d5ea6
commit 199d17de32

View File

@ -4628,7 +4628,8 @@ int qemuProcessStart(virConnectPtr conn,
goto cleanup;
}
if (virDomainDefCheckDuplicateDiskWWN(vm->def) < 0)
if (!migrateFrom && !snapshot &&
virDomainDefCheckDuplicateDiskWWN(vm->def) < 0)
goto cleanup;
/* "volume" type disk's source must be translated before