misc scsi disk/cdrom fixes/improvements 1/4
Use correct sector size for cdrom Read TOC command Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6951 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
6d0662746b
commit
ee16b24ac8
|
@ -790,6 +790,7 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag,
|
||||||
start_track = buf[6];
|
start_track = buf[6];
|
||||||
bdrv_get_geometry(s->bdrv, &nb_sectors);
|
bdrv_get_geometry(s->bdrv, &nb_sectors);
|
||||||
DPRINTF("Read TOC (track %d format %d msf %d)\n", start_track, format, msf >> 1);
|
DPRINTF("Read TOC (track %d format %d msf %d)\n", start_track, format, msf >> 1);
|
||||||
|
nb_sectors /= s->cluster_size;
|
||||||
switch(format) {
|
switch(format) {
|
||||||
case 0:
|
case 0:
|
||||||
toclen = cdrom_read_toc(nb_sectors, outbuf, msf, start_track);
|
toclen = cdrom_read_toc(nb_sectors, outbuf, msf, start_track);
|
||||||
|
|
Loading…
Reference in a new issue