]> 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)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 26 Jan 2018 06:58:34 +0000 (07:58 +0100)
commit395b95395934785ca86baafd314d0c31b307d16d
tree3ca5f18622bbb84cd5d6323f29f3a5e26a6397e5
parent99761176eeaf852537030124c846ddec1981d24f
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>
hw/scsi/scsi-bus.c
hw/usb/dev-storage.c
include/hw/scsi/scsi.h