]> git.proxmox.com Git - mirror_qemu.git/commit
usb-storage: Fix share-rw option parsing
authorFam Zheng <famz@redhat.com>
Wed, 17 Jan 2018 00:52:22 +0000 (08:52 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 29 Jan 2018 15:27:47 +0000 (09:27 -0600)
commit50c6998c2004a9710925f0aefc5cdcf0ab2df4c9
tree548d3395c698b48510c98c6bb58b090bda97dc11
parentdccdaacc3d2c315f16e2723c619afcb0832e01fe
usb-storage: Fix share-rw option parsing

Because usb-storage creates an internal scsi device, we should propagate
options. We already do so for bootindex etc, but failed to take care of
share-rw. Fix it in an apparent way: add a new parameter to
scsi_bus_legacy_add_drive and pass in s->conf.share_rw.

Cc: qemu-stable@nongnu.org
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Message-id: 20180117005222.4781-1-famz@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 395b95395934785ca86baafd314d0c31b307d16d)
 Conflicts:
hw/usb/dev-storage.c
* dropped context dep on ceff3e1f01e
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/scsi-bus.c
hw/usb/dev-storage.c
include/hw/scsi/scsi.h