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

From: Albert D. Cahalan (acahalan@cs.uml.edu)
Date: Sun Jun 04 2000 - 19:14:23 EST


Alexander Viro writes:
> On Sun, 4 Jun 2000, Jamie Lokier wrote:

>> It's ugly, but maybe they could appear as symlinks "mntpnt ->
>> mntpnt/:vfsmount_info"? .. works as you want and they're not followed
>> by security-conscious stuff.
>
> Eeeeeerrch... That's not ugly, that's sick.
> % ls -l /usr
> lrwxrwxrwx 1 root root 5 Jun 3 11:08 /usr -> usr/:something
> Dunno about security-conscious programs, but I wouldn't like to see that -
> vomit makes keyboard sticky.

This can be fixed by combining it with that other idea you love,
using "/" as separator and "//" as an escaped "/":

/usr -> /../ext2///dev//sda1///

Now you know an ext2 filesystem from /dev/sda1 is mounted starting
(as normal) at the root. Gee, you could encode a whole mtab line.

You did want to get rid of mtab, didn't you? Here you go!

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