提交 2bd9db96 编写于 作者: P Peter Krempa

qemu: hotplug: Don't generate alias when detaching disk

It should be impossible to lack an alias in the domain definition. Other
disk types don't generate it so remove it here as well.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 c3543a32
......@@ -4915,11 +4915,6 @@ qemuDomainDetachVirtioDiskDevice(virQEMUDriverPtr driver,
goto cleanup;
}
if (!detach->info.alias) {
if (qemuAssignDeviceDiskAlias(vm->def, detach) < 0)
goto cleanup;
}
if (!async)
qemuDomainMarkDeviceForRemoval(vm, &detach->info);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册