提交 c78c9f5a 编写于 作者: J Jim Meyering

Revert f5a6ce44

* src/qemu/qemu_driver.c (qemudDomainAttachSCSIDisk): The ".controller"
member is an index, and *may* be 0.  As such, the commit that we're
reverting broke SCSI disk hot-plug on controller 0.
Reported by Wolfgang Mauerer.
上级 3f1aa08a
......@@ -6080,12 +6080,6 @@ static int qemudDomainAttachSCSIDisk(struct qemud_driver *driver,
if (!(drivestr = qemuBuildDriveStr(disk, 0, qemuCmdFlags)))
goto error;
if (disk->info.addr.drive.controller <= 0) {
qemuReportError(VIR_ERR_INTERNAL_ERROR,
_("no drive controller for %s"), disk->dst);
goto error;
}
for (i = 0 ; i <= disk->info.addr.drive.controller ; i++) {
cont = qemuDomainFindOrCreateSCSIDiskController(driver, vm, i, qemuCmdFlags);
if (!cont)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册