Re: Loopback (dir->dir) mounting (NOT -o loop)

From: H. Peter Anvin (hpa@zytor.com)
Date: Fri Jun 02 2000 - 18:48:10 EST


Followup to: <20000602223121.A7247@pcep-jamie.cern.ch>
By author: Jamie Lokier <lk@tantalophile.demon.co.uk>
In newsgroup: linux.dev.kernel
>
> For most uses, the illusion of multiple mounts is provided very nicely
> by symbolic links. It works, and programs which should not be confused
> can make a point of not following links. For example a program that
> does "rm -rf" in /tmp.
>
> So what use is mount -t bind?
>
> One use is to hide the fact that anything is linked. This it does very
> well. Disturbingly well :-) I don't know of a legitimate use for this
> though.
>

There is plenty -- the chief one is to provide the same namespace on a
whole collection of machines. autofs currently uses symlinks (well,
3.1.5 supports mount -t bind) and it is a neverending source of
complaints.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:16 EST