scsi-disk: small clean up to INQUIRY
commite39be4823215e511d0e85aa33b2a5ade71064c72
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Oct 2011 12:27:40 +0000 (12 14:27 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:52 +0000 (28 19:25 +0200)
tree545ed8d03bd2570f04b3115a63ea1ab779eac999
parent69377307b25f12235560d21050808a8de5793199
scsi-disk: small clean up to INQUIRY

Set s->removable, s->qdev.blocksize and s->qdev.type in the callers
of scsi_initfn.

With this in place, s->qdev.type is allowed, and we can just reuse it
as the first byte in VPD data (just like we do in standard INQUIRY data).
Also set s->removable is set consistently and we can use it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-disk.c