Re: Symlink indirection

From: John Bradford (john@bradfords.org.uk)
Date: Sat Dec 14 2002 - 11:13:30 EST


> (contrived example with made-up mount option --overlay)
>
> mkdir a
> echo "a/x" > a/x
> echo "a/y" > a/y
> echo "a/z" > a/z
>
> mkdir b
> echo "b/y" > b/y
>
> mkdir c
> echo "c/z" > c/z
>
> mkdir d
> mount --bind a d
> mount --bind --overlay b d
> mount --bind --overlay c d
>
> cat d/x
> "a/x"
>
> cat d/y
> "b/y"
>
> cat d/z
> "c/z"

BSD has a mount_union command which does this, as well as mount_null,
which allows you to effectively mount a filesystem more than once.

I'm not sure how well it works, though, it might only work on some
filesystems.

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



This archive was generated by hypermail 2b29 : Sun Dec 15 2002 - 22:00:30 EST