scsi-disk: restruct emulation: INQUIRY
commit0b06c05979075cbf224724f5ac1a3f4d713ccdd8
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 26 Nov 2009 14:34:04 +0000 (26 15:34 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:39 +0000 (3 09:41 -0600)
treea76b7dd301131450a86ee31b3679efafdcbbfded
parent51ad87c963dfd3fb12316338cee8b75395bd1686
scsi-disk: restruct emulation: INQUIRY

Move INQUIRY emulation from scsi_send_command() to
scsi_disk_emulate_command().  Also split the longish INQUITY emulation
code into the new scsi_disk_emulate_inquiry() function.  Serial number
handling is slightly changed, we don't copy it any more but look it up
directly in DriveInfo which we have at hand anyway.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/scsi-disk.c