Subject: Re: problems with cdrom
To: Thorsten Frueauf <s_frueau@ira.uka.de>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 08/31/1995 17:07:24
On Wed, 30 Aug 1995 16:42:08 +0200 (MET DST) 
 s_frueau@ira.uka.de (Thorsten Frueauf) wrote:

 > ahsc0 targ 2 lun 0: <NEC, CD-ROM DRIVE:84, 1.0a> SCSI1 5/cdrom removable
 > cd0 at scsibus0: cd present, 332578 x 2048 byte records
   [ . . . ]

Your cdrom drive doesn't grok LUNs correctly ... it's possible that the 
driver didn't do LUNs before the recent changes.  To fix this, you can 
add those `ID' strings to /sys/scsi/scsiconf.c in the quirks table.  The 
entry would look something like this:

	{T_CDROM, T_REMOV
	 "NEC     ", "CD-ROM DRIVE:84 ", "",     SDEV_NOLUNS},

It's worth noting that the following NEC cdrom drives are already in the 
quirk table:

        {T_CDROM, T_REMOV,
         "NEC     ", "CD-ROM DRIVE:55 ", "",     SDEV_NOLUNS},
        {T_CDROM, T_REMOV,
         "NEC     ", "CD-ROM DRIVE:83 ", "",     SDEV_NOLUNS},
        {T_CDROM, T_REMOV,
         "NEC     ", "CD-ROM DRIVE:841", "",     SDEV_NOLUNS},

Apparently, a number of them have this problem :-)  Try that, and, if it 
works, send a bug report with send-pr.

--------------------------------------------------------------------------
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939