Subject: Re: Detaching live sd devices
To: Ignatios Souvatzis <is@NetBSD.org>
From: Jukka Marin <jmarin@embedtronics.fi>
List: tech-kern
Date: 07/25/2005 22:00:09
On Mon, Jul 25, 2005 at 08:12:26PM +0200, Ignatios Souvatzis wrote:
> On Mon, Jul 25, 2005 at 08:03:14PM +0200, Lars Nordlund wrote:
> > Jukka Marin <jmarin@embedtronics.fi> 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.
> > 
> > What happened if you inserted another floppy instead of the one you
> > just removed? Did it destroy that floppy with the other floppy's dirty
> > buffers?
> 
> No. Filesystem volumes have names in AmigaOS, so the OS knows if the right
> floppy is in.

Actually, it wasn't the name, but the unique volume ID (or some such) that
was created when the disk (or other device) was formatted.  You could have
100 disks with the name "Empty Disk" and the system would still know which
one was the one it wanted.

> In most cases, you could even insert into a different drive; but I think
> flushing dirty buffers was the exception.

True.

  -jm