Re: Floppy handling

From: Maciej W. Rozycki (macro@ds2.pg.gda.pl)
Date: Wed Jun 21 2000 - 05:16:40 EST


On Wed, 21 Jun 2000, Jamie Lokier wrote:

> 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.

 Well, doesn't the elevator work for "-o sync"? Floppy is slow enough it
wouldn't make any inconsistency if writes get reordered for the duration
of the motor being active (i.e. when the LED is lit). And during
processing the first write request it's quite likely all subsequent
requests have already arrived.

> 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.

 Is that a problem? You still have the "dirty" flag set for filesystems
that support it but data is otherwise consistent. Fat filesystems are
clean anyway.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

- 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