[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: df: cannot read table of mounted filesystems
From: |
Moritz Schulte |
Subject: |
Re: df: cannot read table of mounted filesystems |
Date: |
Thu, 11 Apr 2002 17:30:25 +0200 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 |
Some time ago we spoke about the mtab-problem on IRC, the plan as
discussed was (iirc):
* A mtab-translators sits on /etc/mtab;
* 'real' filesystem translators (ext2fs, etc. - lib{disk,net}fs?)
accept an argument --mntpath=...;
* if that argument is given, after startup, the fs translator looks up
a port to /etc/mtab and io_write's a line - the mtab entry as it
should be displayed- on that port;
* the mtab translator notices when filesystems go away/crash because
the port is dead;
* the mtab translator generates output, which consists of all the
lines writen by the filesystem servers.
Btw, I just noticed that sysdeps/mach/hurd/getcwd.c contains code to
're-translate' a file port to a path. This code could be also used by
the mtab translator, which would eliminate the need of providing the
filesystem translator with the pathname it translates via a --mntpath=
option - it could find out the path itself.
moritz
--
moritz@duesseldorf.ccc.de - http://duesseldorf.ccc.de/~moritz/
GPG fingerprint = 3A14 3923 15BE FD57 FC06 B501 0841 2D7B 6F98 4199