mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
Revert f5a6ce44ce
* 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.
This commit is contained in:
parent
3f1aa08af6
commit
c78c9f5a9b
@ -6080,12 +6080,6 @@ static int qemudDomainAttachSCSIDisk(struct qemud_driver *driver,
|
|||||||
if (!(drivestr = qemuBuildDriveStr(disk, 0, qemuCmdFlags)))
|
if (!(drivestr = qemuBuildDriveStr(disk, 0, qemuCmdFlags)))
|
||||||
goto error;
|
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++) {
|
for (i = 0 ; i <= disk->info.addr.drive.controller ; i++) {
|
||||||
cont = qemuDomainFindOrCreateSCSIDiskController(driver, vm, i, qemuCmdFlags);
|
cont = qemuDomainFindOrCreateSCSIDiskController(driver, vm, i, qemuCmdFlags);
|
||||||
if (!cont)
|
if (!cont)
|
||||||
|
Loading…
Reference in New Issue
Block a user