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

From: Kenneth C. Arnold (kcarnold@yahoo.com)
Date: Fri Jun 02 2000 - 00:14:09 EST


On Thu, Jun 01, 2000 at 05:53:09PM -0700, H. Peter Anvin wrote:
> "Kenneth C. Arnold" wrote:
> > Actually, no.
> >
> > # mkdir /home/test
> > # mkdir /home/test/again
> > # mount -t bind /home/test /home/test/again
> > # ls /home/test
> > again
> > # ls /home/test/again
> > # echo "Not."
> > Not.
> >
> > But I would like a fs that _could_ do that.
> >
> > Kenneth
>
> Fine, then:
>
> g=1
> while [ $g -lt 10000 ]; do
> mkdir /home/user/junk/$g
> mount -t bind /home/user/megadir /home/user/junk/$g
> g=`expr $g + 1`
> done

Ewww... 10,000 extra mounts is _not_ what I had in mind! (can Linux
even support that much? Even if so, it would seriously bog stuff
down...)

Then again, there isn't much use for recursion anyway. Although
it would be fun to play with...

On the other hand,

$ cd /home/test/
$ ln -s /home/test again
$ ls /home/test/again/again/again/again/again/
again
$ echo "Ha."
Ha.

Have fun with bash's tab autocomplete (cd /home/test/<tab><tab><tab><tab>...)

Kenneth

-
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:13 EST