From owner-cvs-all Sat Oct 5 14:39:27 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 375D437B407; Sat, 5 Oct 2002 14:39:21 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EF7543E6A; Sat, 5 Oct 2002 14:39:20 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g95LdJKD017747; Sat, 5 Oct 2002 15:39:19 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g95LdJDd017746; Sat, 5 Oct 2002 15:39:19 -0600 (MDT) (envelope-from ken) Date: Sat, 5 Oct 2002 15:39:18 -0600 From: "Kenneth D. Merry" To: Poul-Henning Kamp Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/alpha/conf GENERIC SIMOS src/sys/conf NOTES files files.alpha files.i386 files.ia64 files.pc98 files.sparc64 options src/sys/dev/mcd mcd.c mcd_isa.c src/sys/geom geom_disk.c src/sys/i386/conf GENERIC OLDCARD src/sys/i386/isa scd.c ... Message-ID: <20021005153918.A17714@panzer.kdm.org> References: <200210051635.g95GZXBq062212@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200210051635.g95GZXBq062212@freefall.freebsd.org>; from phk@FreeBSD.org on Sat, Oct 05, 2002 at 09:35:33AM -0700 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Oct 05, 2002 at 09:35:33 -0700, Poul-Henning Kamp wrote: > SCSI floppy drives: > Appearantly the scsi-da driver return "EBUSY" if no media > is inserted. This is wrong, it should return ENXIO. I haven't seen any mention of this elsewhere. It is likely that this is caused by bogus drive firmware, not the da(4) driver itself. Errors in CAM are determined by the ASC/ASCQ pair, if available, and otherwise by the sense key if they're not available. If this device isn't returning a standard "Medium not present" sense code, we may not return ENXIO as you'd expect. If you look in scsi_all.c, the "Medium not present" sense codes all result in ENXIO being returned. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message