Jon Arney <[EMAIL PROTECTED]> writes:

> Another good idea.  Forgive my simple-minded-ness, but a simple
> approach to the problem might be for filesystems to voluntarily
> register themselves by simply writing to /etc/mtab as a real
> file.  Is this a job that really needs a translator to do?
> Writing an RPC to a translator is similar to simply opening /etc/mtab
> (except of course, for the root which might require special
> consideration).

If the protocol says that a client of /etc/mtab should keeps its port
open as long as it lives, an mtab translator can cleanup automatically
when the filesystem goes away, even if the filesystem was killed
brutally with kill -9. And you can also put all needed syncronization
in the mtab translator; otherwise, clients would need to somehow lock
the file for exclusive access in order to delete a line in the middle
of it.

So even if a translator is not strictly needed, I think it would halp
making the mechanism both robust and simple to use.

/Niels

_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd

Reply via email to