From owner-freebsd-scsi Mon Feb 24 15:24:12 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA28006 for freebsd-scsi-outgoing; Mon, 24 Feb 1997 15:24:12 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA27995 for ; Mon, 24 Feb 1997 15:24:07 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA05921 for freebsd-scsi@FreeBSD.org; Tue, 25 Feb 1997 00:24:03 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id WAA01255; Mon, 24 Feb 1997 22:09:17 +0100 (MET) Message-ID: Date: Mon, 24 Feb 1997 22:09:17 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-scsi@FreeBSD.org Subject: Re: cvs commit: src/sys/scsi cd.c References: <199612271602.RAA13776@uriah.heep.sax.de> <199612280248.NAA00474@genesis.atrad.adelaide.edu.au> X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 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 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199612280248.NAA00474@genesis.atrad.adelaide.edu.au>; from Michael Smith on Dec 28, 1996 13:18:43 +1030 Sender: owner-freebsd-scsi@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk As Michael Smith wrote: > > > The "unit is not spinning" status should probably be an error/status > > > return to the generic SCSI layer in the "ideal world". > > > > Why? > > I was visualising it as a soft error : > > SCSI: driver: > Do can't, it's not spinning Hmm, the problem with this is there's not really a ``disk is not spinning'' error. ``Logical unit not ready, cause not reportable.'' This could mean anything and all. > oops, start it ok, started > Do ok > > This obviates the need to explicitly perform the start command; any > command (that requires the disk to be spinning) to a disk that is not > spinning will cause the error handler to start it and retry the > command(s) - this then covers the case where a disk is powered down > for whatever reason while it's open. I don't say this idea is unreasonable. :) > A lot of SCSI disks don't seem to accept STOP UNIT. (I tried that > here out of interest; none of the disks I could safely unmount > accepted it; admittedly that's mostly CDC and Seagate disks.) Seagates usually do, well, unless they aren't Seagates but CDCs. ;-) To be fair, these CDCs don't even claim SCSI-2 compliance either, AFAIK. The START STOP UNIT command is optional, but these CDCs do accept it -- it's only that they don't allow to turnoff the drive. So you're simply at a loss with them. -- 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. ;-)