Subject: Re: proposal: sys/dkio.h
To: Christoph Badura <bad@flatlin.ka.sub.org>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 01/29/1996 15:18:38
On 29 Jan 1996 17:03 +0100 
 bad@flatlin.ka.sub.org (Christoph Badura) wrote:

 > Uhm, I believe scsi/sd.c will issue a prevent medium removal command
 > on the first open of the device and a allow medium removal command on
 > the last close.

That is correct.  However, this is wrong for removable media devices such 
as ZIPs.  You have to issue an "allow" before an "eject" because you will 
have opened the device in order to send it the eject command.

--------------------------------------------------------------------------
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939