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