]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Initialization error of controller in QEmu SCSI hotplug
authorWen Congyang <wency@cn.fujitsu.com>
Mon, 31 Jan 2011 07:55:40 +0000 (15:55 +0800)
committerDaniel Veillard <veillard@redhat.com>
Mon, 31 Jan 2011 07:55:40 +0000 (15:55 +0800)
commit7ca5765b912ebd3ec906db5bc42fc72b7907d8e8
treeb30eba51f905d3349211bc7c315e08f9e76c1820
parent53258f3e7f90cd465c3ba47c7afea286207db7a5
Initialization error of controller in QEmu SCSI hotplug

Bug manifests itself by:

1. # virsh attach-disk --target sdb ...
2. # virsh attach-disk --target sdh ...
   error: Failed to attach disk
   error: operation failed: target scsi:0 already exists

sdh uses scsi:1, rather than scsi:0.

* src/qemu/qemu_hotplug.c: properly set controller idx in
  qemuDomainFindOrCreateSCSIDiskController()
src/qemu/qemu_hotplug.c