提交 199d17de 编写于 作者: P Peter Krempa

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.
上级 ce692d5e
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册