jw schultz wrote:
>
> And umount? Anything that umounts or remountes a filesystem
> has to modify /etc/mtab to remove or alter the relevant
> line.
That is not an issue. With my suggestion the line is automatically
removed by the kernel at umount. If the umount program changes the
line before calling the umount system call, the changed line is
discareded anyway. If the umount program try to change the line
after calling umount, it is simply ignored. Currently this is not
going to happen anyway with a umount program that see /etc/mtab
is a symlink and simply skips the update. An updated umount
program for the new approach will simply remove all the code
related to updating mtab.
>
> To put this in kernel means changing how it is updated.
> Once we do that we might as well go all the way.
Yes, in this case it means umount is not going to write at all.
It only needs to read the file for the user specific options.
(To know if the calling user is allowed to umount.) The read can
be done either through the /etc/mtab symlink or the /proc
interface, I prefer the later.
> >
> > 1) Make a new mount system call. Finally get rid of the old
> > magic value in the flag register and add the extra argument
> > which is then required. Make the old mount system call
> > obsolete, but keep it for some versions. The old mount
> > system call should then just behave as if the user data
> > was the empty string.
> >
> > 2) Add a new flag for the old mount system call, which
> > indicates that there is one more argument containing the
> > user data.
>
> #2 with warnings i like better than keeping a deprecated mount
> syscall until 2038.
But by adding options to the existing systemcall we are going
to keep historic options and magic values in that system call
forever. With the new system call we have at least collected all
the historic parts in a single obsolete system call, that can
eventually be removed. Anyway I think this is a minor detail,
both approaches will be an improvement over the current mtab
file. So whatever people prefer I'd be happy with.
-- Kasper Dupont -- der bruger for meget tid på usenet. For sending spam use mailto:aaarep@daimi.au.dk for(_=52;_;(_%5)||(_/=5),(_%5)&&(_-=2))putchar(_); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:34 EST