> > 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.
It might be reasonable to implement: (a) if any files are open, lock the
disk; (b) for floppies locked disk == keep the light on; (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.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:25 EST