From owner-freebsd-current Wed Oct 16 11:50:31 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA25088 for current-outgoing; Wed, 16 Oct 1996 11:50:31 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA25083 for ; Wed, 16 Oct 1996 11:50:29 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA03445; Wed, 16 Oct 1996 11:49:21 -0700 From: Terry Lambert Message-Id: <199610161849.LAA03445@phaeton.artisoft.com> Subject: Re: scsi drives left locked by shutdown To: julian@whistle.com (Julian Elischer) Date: Wed, 16 Oct 1996 11:49:21 -0700 (MST) Cc: bde@zeta.org.au, current@FreeBSD.org In-Reply-To: <326526E2.167EB0E7@whistle.com> from "Julian Elischer" at Oct 16, 96 11:18:10 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > I use a zip drive for "/" and swap on a test machine. Shutdown doesn't > > close the swap device, so scsi_prevent() isn't called to unlock the drive, > > so a hard reset is required to eject disks. > > maybe a use for the at_shutdown() call? > At one stage in the Berkeley BSD 4.4 course there was discussion > of adding "shutdown" entries to cdevsw entries.. I second the motion of adding "detach" routines... it's very necessary for rundown on pluggable hardware (which, by definition, is also unpluggable). The driver needs to be able to "rundown" at any time. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.