]> git.proxmox.com Git - qemu.git/commit
scsi: fix drive hotplug.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 10 Dec 2009 10:11:07 +0000 (11:11 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 12 Dec 2009 14:17:30 +0000 (08:17 -0600)
commit6e792a557e5c710c9ccb3507bf5aa4e457a49318
treec1e3f2ce98963590f0e4ca57f91d0e79010febb0
parentea2138cf90fd4c2a6fefabff23b4c8681411a3f0
scsi: fix drive hotplug.

This patch fills the DriveInfo->unit after hotplugging a scsi disk.
It makes a difference when auto-assigning a scsi id, where unit was
left filled with '-1' instead of the actual scsi id.

With this patch applied the the drive naming logic in drive_init() works
as good as it did in previous releases.  Which means it works fine with
a single scsi bus.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 11f4d7f483d9ca3a8979abd605cf1468b3e96aa2)
hw/pci-hotplug.c