Subject: Re: Detaching live sd devices
To: Jason Thorpe <thorpej@shagadelic.org>
From: Jukka Marin <jmarin@embedtronics.fi>
List: tech-kern
Date: 07/25/2005 22:03:21
On Mon, Jul 25, 2005 at 10:52:40AM -0700, Jason Thorpe wrote:
> >On the Amiga, you just ejected the disk.  If the OS had any dirty  
> >buffers,
> >it would ask the user to reinsert the disk so it could flush the  
> >buffers.
> >It also flushed the buffers when a timeout expired after the "last"  
> >disk
> >access.
> 
> ...and on the Amiga, was there a way to yank the disk out of a hot- 
> plug port?  In this case, by the time the OS gets the notification,  
> it's too late.

You could eject a floppy disk at any time.  The system would ask you to
reinsert it if needed.  It was not trying to flush the buffers before
the disk was completely ejected (the flush timeout was there to handle
the common case where a file was written to disk and after 2 seconds the
user ejected the disk).

  -jm