From owner-freebsd-current Wed Oct 16 12:26:26 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA28032 for current-outgoing; Wed, 16 Oct 1996 12:26:26 -0700 (PDT) Received: from freefall.freebsd.org (localhost.cdrom.com [127.0.0.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id MAA28024; Wed, 16 Oct 1996 12:26:24 -0700 (PDT) Message-Id: <199610161926.MAA28024@freefall.freebsd.org> To: Terry Lambert cc: julian@whistle.com (Julian Elischer), bde@zeta.org.au, current@FreeBSD.org Subject: Re: scsi drives left locked by shutdown In-reply-to: Your message of "Wed, 16 Oct 1996 11:49:21 PDT." <199610161849.LAA03445@phaeton.artisoft.com> Date: Wed, 16 Oct 1996 12:26:23 -0700 From: "Justin T. Gibbs" 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. Although detach routines might be useful for other reasons, I see the bug here as the swap device is never closed and that it should be. This doesn't require another device entry point to fix. -- Justin T. Gibbs =========================================== FreeBSD: Turning PCs into workstations ===========================================