From owner-cvs-all Fri Nov 3 18: 5:29 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E03CE37B4C5; Fri, 3 Nov 2000 18:05:26 -0800 (PST) Received: (from ken@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA33555; Fri, 3 Nov 2000 18:05:26 -0800 (PST) (envelope-from ken@FreeBSD.org) Message-Id: <200011040205.SAA33555@freefall.freebsd.org> From: Kenneth Merry Date: Fri, 3 Nov 2000 18:05:26 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/cam/scsi scsi_cd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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