Re: Floppy handling

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Thu Jun 22 2000 - 14:38:40 EST


Manfred Spraul wrote:
> I think we should...

> * An automounter mounts and unmounts every few seconds [on floppies: 2
> seconds without accesses].

2 seconds is too long. On other OSes (I'm talking about all the old
micros), it's quite usual to rip a disk out of a drive the moment the
light goes out, or even a bit sooner if you recognise that writing has
finished and it's simply timing out the motor.

It works with mtools, so user habits aren't going to adapt on this one
even if it makes sense -- it's not instinctive.

> "Unmount" means that /mnt/floppy is
> invalidated, the superblock and all old file handles remain valid.

Hmm. I think everything should be invalidated in the style of revoke()
and something clever done with directories.

> [much other stuff]
> I know that it sounds very complicated.

Yes it does... And you can't rely on the serial number because some
floppies (even MS-DOS ones) don't have one.

> but we should give the user a second chance if he has accidentially
> removed a disk.

For those of us who want 50k less kernel and 50k more free user space, I
propose that the motor stays on until everything's written, writes are
scheduled as soon as the disk is idle (or soon after), and a disk change
unmounts the disk. :-)

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:24 EST