Re: Floppy handling

From: Jamie Lokier (lk@tantalophile.demon.co.uk)
Date: Wed Jun 21 2000 - 04:10:07 EST


Maciej W. Rozycki wrote:
> Hmm, isn't a fs mounted with "-o sync" plus an automounter (autofs, for
> example) unmounting a floppy after a short (such as a few seconds) timeout
> sufficient? This way you have both the floppy cached and coherent.

No, "-o sync" is too slow. You still want write-back cacheing to
coalesce blocks, and the elevator to optimise seeks. In addition, you
want to always keep light/motor on while there are pending writes, and
make the write flush timeout quite small when the floppy is idle.

Also, auto-unmounting after a few seconds fails if the directory is
anybody's current directory. But the floppy light has gone off. In
this case it's not safe to remove the floppy. That rather defeats the
point of auto-unmounting: now the user has to type a command to see if
it's safe to remove the floppy.

-- 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:21 EST