Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2002 14:10:04 -0700 (PDT)
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        freebsd-scsi@FreeBSD.org
Subject:   Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open()
Message-ID:  <200208222110.g7MLA42w063834@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/15608; it has been noted by GNATS.

From: "Kenneth D. Merry" <ken@kdm.org>
To: Johan Karlsson <johan@FreeBSD.ORG>
Cc: nsayer@quack.kfu.com, freebsd-gnats-submit@FreeBSD.ORG,
	freebsd-scsi@FreeBSD.ORG, freebsd-standards@FreeBSD.ORG,
	sos@FreeBSD.ORG
Subject: Re: kern/15608: acd0 / cd0 give inconsistent errors on empty tray open()
Date: Thu, 22 Aug 2002 15:09:31 -0600

 On Thu, Aug 22, 2002 at 12:42:22 -0700, Johan Karlsson wrote:
 > Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi
 > Responsible-Changed-By: johan
 > Responsible-Changed-When: Thu Aug 22 12:40:51 PDT 2002
 > Responsible-Changed-Why: 
 > 	Over to -scsi since the proposal is to change cd0.
 
 Let's see if there are any opinions on freebsd-standards.
 
 The question is, what sort of error should we return from a peripheral
 driver (cd(4), da(4), etc.) open() routine when there is no media in the
 drive?
 
 Currently all CAM drivers will return ENXIO, and although the PR says that
 the acd(4) driver returns EIO, I can't tell from acdopen that it returns
 any errors at all if media isn't present.
 
 My guess is that EIO is getting returned sometime later in the acd(4)
 driver.  (If that is still the case, this PR was filed in late 1999.)
 
 So is there any opinion on -standards as to what sort of error we should
 return on open if there is no media in a drive?
 
 Ken
 -- 
 Kenneth Merry
 ken@kdm.org

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?200208222110.g7MLA42w063834>