Date: Fri, 3 Nov 2000 18:05:26 -0800 (PST) From: Kenneth Merry <ken@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/cam/scsi scsi_cd.c Message-ID: <200011040205.SAA33555@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
ken 2000/11/03 18:05:26 PST Modified files: sys/cam/scsi scsi_cd.c Log: Fix a problem with the previous revision (1.42) that showed up with audio CDs. With audio CDs, you can't just do a READ(10) call on most drives without first setting the blocksize with a mode select command. The disklabel code does a read of the first sector of the media to find a label if it exists. This caused drives to return an error when an audio CD was in the drive, due to the problem described above. The solution is to read the table of contents on the CD, and only attempt to read the disklabel if the first track is a data track. This works on all the various CD and DVD media I have tried, but further testing (especially with Video CDs and other mode 2 media) will be needed to determine if this is a universal solution. Revision Changes Path 1.43 +94 -1 src/sys/cam/scsi/scsi_cd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011040205.SAA33555>