From owner-freebsd-scsi Tue Jun 23 03:24:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA12109 for freebsd-scsi-outgoing; Tue, 23 Jun 1998 03:24:38 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from hda.hda.com (hda-bicnet.bicnet.net [208.220.66.37]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA12021 for ; Tue, 23 Jun 1998 03:24:27 -0700 (PDT) (envelope-from dufault@hda.hda.com) Received: (from dufault@localhost) by hda.hda.com (8.8.5/8.8.5) id FAA03226; Tue, 23 Jun 1998 05:57:52 -0400 (EDT) From: Peter Dufault Message-Id: <199806230957.FAA03226@hda.hda.com> Subject: Re: Rolling CAM in, what is still needed? In-Reply-To: <19980623154334.A392@freebie.lemis.com> from Greg Lehey at "Jun 23, 98 03:43:34 pm" To: grog@lemis.com (Greg Lehey) Date: Tue, 23 Jun 1998 05:57:51 -0400 (EDT) Cc: ken@plutotech.com, jonny@jonny.eng.br, mjacob@feral.com, julian@whistle.com, ckempf@enigami.com, freebsd-scsi@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > My guess is that that is what it was supposed to do in theory, but > > in practice, I don't think it does. I looked at the open routines in the > > current cd, sd and st drivers, and none of them check to see if it was the > > control device that was opened. So if no media is in the drive, the open > > will fail. > > This matches my experience. Check again and log it as a bug. The ctl device is intercepted at the top in scsi_open at a single point and should be completely reliable. Much of the work I did involved pulling duplicated code into a common point. Unfortunately it tends to sneak back in - a good reason for an occasional rewrite (with a commitment to backward support of user interfaces). Peter -- Peter Dufault (dufault@hda.com) Realtime development, Machine control, HD Associates, Inc. Safety critical systems, Agency approval To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message