From owner-freebsd-scsi Sat Jan 4 01:51:26 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id BAA09186 for freebsd-scsi-outgoing; Sat, 4 Jan 1997 01:51:26 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id BAA09180 for ; Sat, 4 Jan 1997 01:51:23 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id KAA09176 for ; Sat, 4 Jan 1997 10:51:21 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id KAA02210 for freebsd-scsi@freebsd.org; Sat, 4 Jan 1997 10:51:21 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id KAA19323; Sat, 4 Jan 1997 10:44:44 +0100 (MET) Message-ID: Date: Sat, 4 Jan 1997 10:44:44 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-scsi@freebsd.org Subject: Re: Ideas on CD changers sought References: X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: ; from John-Mark Gurney on Jan 3, 1997 17:26:14 -0800 Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As John-Mark Gurney wrote: > > Is there anybody around with such a broken drive who could act as a > > guinea-pig? > > I have a Chinon CDS-535... that looks like it would response to multi-luns > (it has an entry in the scsiconf file... this is also the drive that has > broken toc reports (it does packed BCD instead of std binary)... > > I guess I could be a guinea-pig... assuming the patches you send me are > relative to 960823-SNAP as that's what I'm running.... ttyl.. Try this. Of course, you also need to remove (or comment out) your entry in scsiconf.c, so it won't be special-cased. If Julian's assumption is right, the drive should no longer respond to the inquiry on all LUNs after applying that patch. Index: sys/scsi/scsi_base.c =================================================================== RCS file: /home/ncvs/src/sys/scsi/scsi_base.c,v retrieving revision 1.39 diff -u -u -r1.39 scsi_base.c --- scsi_base.c 1996/07/14 10:46:48 1.39 +++ scsi_base.c 1997/01/04 09:42:25 @@ -274,6 +274,7 @@ bzero(&scsi_cmd, sizeof(scsi_cmd)); scsi_cmd.op_code = INQUIRY; + scsi_cmd.byte2 = sc_link->lun << 5; scsi_cmd.length = sizeof(struct scsi_inquiry_data); return (scsi_scsi_cmd(sc_link, -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)