Re: Of removable devices

From: Khimenko Victor (khim@sch57.msk.ru)
Date: Tue Feb 15 2000 - 23:45:53 EST


In <200002160044.e1G0iA517257@sleipnir.valparaiso.cl> Horst von Brand (vonbrand@sleipnir.valparaiso.cl) wrote:
> "Khimenko Victor" <khim@sch57.msk.ru> said:

> [...]

>> Yes, this all can be changed. You will need "just" rewrite half of VFS
>> layer to do it. Current VFS implementation does not allow sane
>> supermount. Yes, you can cook up something (it was even done). It'll work
>> sometimes. But it'll ruin floppies from time to time. MS DOS doing it,
>> Windows doing it (there are no easy way to check if filesystem is clean
>> and you can eject floppy safely -- I'v e ruined my floppies pretty often
>> on old days when I've used them) but WHY THE HELL Linux should do this is
>> well ?

> As long as it runs on shitty hardware that encourages anybody to just take
> out a floppy while it is being written to, there is no solution.

There IS solution. It's in kernel now. It's called "unmount". If you ejecting
your floppy without umount you filesystem CAN be ruined. If you are doing this
without umount you should expect ruined filesystem. Once supermount is considered
"normal" such protection is gone. There also exist Windows's "solution" (see
below).

See ? With explicit mount/unmount ruined filesystem is USER'S failt (he did
not unmounted floppy even if shitty hardware teased his/her it's still USER'S
fault). With suportmout/automount/whatever it's LINUX'S fault (user did not
done anything illigal while files was lost). Hence bad press and so on.
So we replaced small evil ("Oh linux is so hard to use: you should mount
floppies and cds with explicit mount") with bigger one ("I've not done anything
illegal and still Linux ruined my spreadshit/database/whatever"). Windows not
uses serial numbers on floppies and ask you to insert "right one" back if it's
taken out to fast but IMO such change will require more then just small rework
of VFS (how to ask user to put disk back if said user can used X Window ?).
To Viro: Am I wrong ?

-
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 : Wed Feb 23 2000 - 21:00:14 EST