From owner-freebsd-bugs Wed Dec 18 14:57:16 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA04472 for bugs-outgoing; Wed, 18 Dec 1996 14:57:16 -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 OAA03963 for ; Wed, 18 Dec 1996 14:54:02 -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 XAA08492 for ; Wed, 18 Dec 1996 23:51:08 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA11257 for freebsd-bugs@FreeBSD.org; Wed, 18 Dec 1996 23:51:08 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.4/8.6.9) id XAA24140 for freebsd-bugs@FreeBSD.org; Wed, 18 Dec 1996 23:27:51 +0100 (MET) From: J Wunsch Message-Id: <199612182227.XAA24140@uriah.heep.sax.de> Subject: Re: installation 2.1.6 To: freebsd-bugs@FreeBSD.org (FreeBSD bugs list) Date: Wed, 18 Dec 1996 23:27:50 +0100 (MET) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <9612182200.AA09033@halloran-eldar.lcs.mit.edu> from Garrett Wollman at "Dec 18, 96 05:00:22 pm" 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 X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Garrett Wollman wrote: > > special file. Due to the poor errno mechanism, it cannot distinguish > > between no media available and device probe failed: both are meant to > > be ENXIO (if the driver has been implemented correctly). > > Actually, no... this means the driver has been implemented > INcorrectly. A correctly working driver should be openable regardless > of whether or not there is a tape in the drive so that the user can > perform ioctl(2) calls on it to determine definitively whether or not > there is a tape in the drive (and perhaps other things). No, that's what control devices are usually for. You can't open a disk device without a disk in it either. Or take floppies, with an automagic format detection feature one could imagine -- the return of the open() must indicate whether it's of any use to continue. It's pointless to defer the format detection until the first actual IO, to finally detect there that you gotta give up. read(2) and write(2) are not supposed to return ENXIO. -- 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. ;-)