scsi-disk: restruct emulation: READ_TOC
commit02880f434912ca9dcc346d28d375003172b9e650
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 26 Nov 2009 14:34:11 +0000 (26 15:34 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:39 +0000 (3 09:41 -0600)
treeebd4b147f84d26ba715b7a53a26adce145055086
parentfc903943f8df1226294783b0df607c928393bae4
scsi-disk: restruct emulation: READ_TOC

Move READ_TOC emulation from scsi_send_command() to
scsi_disk_emulate_command().  Add scsi_disk_emulate_read_toc() function
which holds the longisch READ_TOC emulation code.

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