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 Message-ID: <Mutt.19970104104444.j@uriah.heep.sax.de> In-Reply-To: <Pine.NEB.3.95.970103172346.294L-100000@hydrogen.nike.efn.org>; from John-Mark Gurney on Jan 3, 1997 17:26:14 -0800 References: <Mutt.19970104003845.j@uriah.heep.sax.de> <Pine.NEB.3.95.970103172346.294L-100000@hydrogen.nike.efn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19970104104444.j>