Re: mount-2.12r-ggk.tar.gz

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andries Brouwer
Date: Tuesday, June 19, 2007 - 2:08 pm

On Tue, Jun 19, 2007 at 08:51:25PM +0200, Karel Zak wrote:

Good that I am not on that mailing list - I might have spent a lot of time
discussing.

I see that many people agree that there is the need to attach
some metadata to mounts. Good.
But they suggest storing that metadata in the kernel. Bad.
The kernel is not a storage place for random non-kernel-related data.

A good place is a file, like /etc/mtab (I suppose today /var/run/mtab
might be the appropriate place for system-wide mounts, and for
user-private mounts the user can, if she wishes, indicate her
favorite mtab file to use: "mount -M $HOME/foo/mtab3").

And the kernel needs non-procfs interfaces (namely syscalls)
that can tell a process about its mount environment: readmounts()
and statmount(). As soon as mount(8) can ask the kernel, then
the problem of non-up-to-date /etc/mtab, and incomplete /proc/mounts
has gone away.

Andries


[By the way, just like a single flat directory that contains all files
turned out to be a bad idea, a single flat structure that contains
all mounts will turn out soon to be a bad idea too. Some people use
thousands of mounts. So, also mounts must live in a tree-structured space.]


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
mount-2.12r-ggk.tar.gz, Andries.Brouwer, (Tue Jun 19, 5:38 am)
Re: mount-2.12r-ggk.tar.gz, Karel Zak, (Tue Jun 19, 7:15 am)
Re: mount-2.12r-ggk.tar.gz, Andries Brouwer, (Tue Jun 19, 8:28 am)
Re: mount-2.12r-ggk.tar.gz, Karel Zak, (Tue Jun 19, 11:51 am)
Re: mount-2.12r-ggk.tar.gz, Andries Brouwer, (Tue Jun 19, 2:08 pm)