]> git.proxmox.com Git - qemu.git/commit - hw/scsi/scsi-bus.c
usb-storage: Forward serial number to scsi-disk
authorKevin Wolf <kwolf@redhat.com>
Wed, 3 Apr 2013 10:41:46 +0000 (12:41 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 5 Apr 2013 16:58:05 +0000 (18:58 +0200)
commit76534da749ceb3b4c13ec09b173bcf6d6c2e36d4
treea3bb27ce98ab5356b05eca7a6960093468763840
parentd05ef160453e98546a4197496dc8a3cb2defac53
usb-storage: Forward serial number to scsi-disk

usb-storage takes care to fetch the USB serial number from -drive
options, but it neglected to pass its own 'serial' property to the
scsi-disk it creates. With this patch, the 'serial' qdev property and
the 'serial' option in -drive behave the same and correctly apply the
serial number on both USB and SCSI level.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
hw/pci/pci-hotplug.c
hw/scsi-bus.c
hw/scsi.h
hw/usb/dev-storage.c