Re: Should mount --bind not follow symlinks?

Alexander Viro (viro@math.psu.edu)
Mon, 12 Mar 2001 08:40:06 -0500 (EST)


On Mon, 12 Mar 2001, Anthony Heading wrote:

> Hi,
> My automounted dirs have up till now been symlinks, where
> e.g. /opt/perl defaults to automounting /export/opt/perl/LATEST
> which is a symlink.
>
> This all worked OK until the 2.4(.2) automounter helpfully tries
> to mount --bind /export/opt/perl/LATEST /opt/perl

Don't mix symlinks with mounts/bindings. Too much PITA and yes, it had
been deliberately prohibited. You _really_ don't want to handle the
broken symlinks and all the realted fun - race-ridden at extreme and
useless.

In automount-like setups you can _replace_ symlinks with bindings.
No need to mix them.
Cheers,
Al

-
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/