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

From: H. Peter Anvin (
Date: Fri Jun 02 2000 - 18:48:10 EST

Followup to: <>
By author: Jamie Lokier <>
In newsgroup:
> 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


<> at work, <> 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 Please read the FAQ at

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