Re: module-init-tools/udev and module auto-loading

From: viro
Date: Tue Feb 03 2004 - 15:56:27 EST


On Tue, Feb 03, 2004 at 10:47:13PM +0200, Martin Schlemmer wrote:
> On Tue, 2004-02-03 at 21:33, viro@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> wrote:
> > On Tue, Feb 03, 2004 at 07:48:06PM +0200, Martin Schlemmer wrote:
> > > > > I guess there will be cries of murder if 'somebody' suggested that if
> > > > > a node in /dev is opened, but not there, the kernel can call
> > > > > 'modprobe -q /dev/foo' to load whatever alias there might have been?
> >
> > Vetoed. _Especially_ when you are checking that on "pathname prefix"
> > level - namei.c is not a place for such special-casing.
> >
>
> Well, I do not scratch around in there in general. I guess the question
> is:
>
> 1) This this idea is Ok to make it (not patch or where it is, but the
> idea in general.

It is not. Consider the effect of cd /dev followed by lookups. Do you
really want a different behaviour in that case? Ditto for use of
symlinks, yadda, yadda.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/