From owner-freebsd-scsi Fri Aug 23 1:33:35 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2405437B400; Fri, 23 Aug 2002 01:33:33 -0700 (PDT) Received: from innocence.interface-business.de (innocence.interface-business.de [193.101.57.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86F8F43E84; Fri, 23 Aug 2002 01:33:28 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: from innocence.interface-business.de (localhost.interface-business.de [127.0.0.1]) by innocence.interface-business.de (8.12.5/8.12.5/ifb evision: 1.23 $) with ESMTP id g7N8XQ8q040257; Fri, 23 Aug 2002 10:33:26 +0200 (CEST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by innocence.interface-business.de (8.12.5/8.12.5/Submit) with UUCP id g7N6o26p036390; Fri, 23 Aug 2002 08:50:02 +0200 (CEST) Received: from uriah.heep.sax.de (localhost.heep.sax.de [127.0.0.1]) by uriah.heep.sax.de (8.12.5/8.12.5) with ESMTP id g7N5xbBs044083; Fri, 23 Aug 2002 07:59:37 +0200 (MET DST) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.12.5/8.12.5/Submit) id g7N5xZEo044082; Fri, 23 Aug 2002 07:59:35 +0200 (MET DST) (envelope-from j) Date: Fri, 23 Aug 2002 07:59:35 +0200 (MET DST) Message-Id: <200208230559.g7N5xZEo044082@uriah.heep.sax.de> Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden 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 References: <20020822150931.A10866@panzer.kdm.org> <20020822.152329.129782316.imp@bsdimp.com> From: j@uriah.heep.sax.de (Joerg Wunsch) Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open() X-Original-Newsgroups: local.freebsd.scsi To: freebsd-scsi@freebsd.org Cc: gnats-followup@freebsd.org Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org "M. Warner Losh" wrote: > EIO means "The device is there, but the driver had problems > interacting with it" while ENXIO means "the device isn't there at > all." As such, EIO is the more correct error to return in this case. I disagree. 6 ENXIO No such device or address. Input or output on a special file referred to a device that did not exist, or made a request beyond the limits of the device. This error may also occur when, for example, a tape drive is not online or no disk pack is loaded on a drive. The case of ``a tape drive is not online'' or ``no disk pack is loaded'' sounds fairly similar to me to ``no CD-ROM inserted''. It's really sad that ENXIO is a catch-all error code, but it really seems to be intented for this. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message