Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 1996 12:26:23 -0700
From:      "Justin T. Gibbs" <gibbs@freefall.freebsd.org>
To:        Terry Lambert <terry@lambert.org>
Cc:        julian@whistle.com (Julian Elischer), bde@zeta.org.au, current@FreeBSD.org
Subject:   Re: scsi drives left locked by shutdown 
Message-ID:  <199610161926.MAA28024@freefall.freebsd.org>
In-Reply-To: Your message of "Wed, 16 Oct 1996 11:49:21 PDT." <199610161849.LAA03445@phaeton.artisoft.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>> > 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
===========================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610161926.MAA28024>