Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2002 07:59:35 +0200 (MET DST)
From:      j@uriah.heep.sax.de (Joerg Wunsch)
To:        freebsd-scsi@freebsd.org
Cc:        gnats-followup@freebsd.org
Subject:   Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open()
Message-ID:  <200208230559.g7N5xZEo044082@uriah.heep.sax.de>
References:  <20020822150931.A10866@panzer.kdm.org> <20020822.152329.129782316.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"M. Warner Losh" <imp@bsdimp.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208230559.g7N5xZEo044082>