Re: Floppy handling

From: Khimenko Victor (khim@sch57.msk.ru)
Date: Fri Jun 23 2000 - 13:07:33 EST


In <20000623131211.A29789@pcep-jamie.cern.ch> Jamie Lokier (lk@tantalophile.demon.co.uk) wrote:
> manfred@colorfullife.com wrote:
>> > If it's a database it can keep open a directory
>> > handle on that disk.
>> > When the disk is removed, the handle is revoke()d as
>> > are any open files, and further operations by the
>> > database program fail.
>>
>> Exactly. -EPLEASEREENTERYOURCHANGES.
>> I want to avoid that.

> Then use a better database :-)

>> That's the only advantage of the multi-volume scheme.

> Nobody uses databases from floppy, and if they do they should know not
> to remove the disk.

Why ? "Normal" (read: dumb) users ? The some ones who can not use mtools
and/or mount/umount ? You are joking, right ?

> It might be reasonable to implement: (a) if any files are open, lock the
> disk; (b) for floppies locked disk == keep the light on;

Just grrrreat for notebooks and programs like WinWord (WinWord will create
lock file near document and will keep it open while document is open in
editor). Real smart.

> (c) process current directories don't count towards (a) (but open handles do).

> That gives the hypothetical database user the clue not to remove the
> disk. For everyone else, the light is on only when necessary.

Do you think light must be on all the time while you are writing letter ?
I think not.

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