On Thu, 2005-04-28 at 00:00, Miklos Szeredi wrote: > > ok. Generally overmounts are done on the root dentry of the topmost > > vfsmount. But in this case, your patch mounts it on the same dentry > > as that of the private mount. > > > > Essentially I was always under the assertion that 'a dentry can hold > > only one vfsmount'. But invisible mount seem to invalidate that > > assertion. > > You can do that without an invisible mount: > > mkdir /tmp/mnt > mkdir /tmp/dir1 > mkdir /tmp/dir1/subdir1 > mkdir /tmp/dir2 > mkdir /tmp/dir2/subdir2 > > cd /tmp/mnt > mount --bind /tmp/dir1 . > mount --bind /tmp/dir2 . > > Now you have both /tmp/dir1 and /tmp/dir2 rooted at the same dentry. Ok. got it!. Agreed. great example! Thanks, RP - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [PATCH] private mounts
- From: Christoph Hellwig <[email protected]>
- Re: [PATCH] private mounts
- From: Pavel Machek <[email protected]>
- Re: [PATCH] private mounts
- From: Miklos Szeredi <[email protected]>
- Re: [PATCH] private mounts
- From: Pavel Machek <[email protected]>
- Re: [PATCH] private mounts
- From: Miklos Szeredi <[email protected]>
- Re: [PATCH] private mounts
- From: Pavel Machek <[email protected]>
- Re: [PATCH] private mounts
- From: Miklos Szeredi <[email protected]>
- Re: [PATCH] private mounts
- From: Miklos Szeredi <[email protected]>
- Re: [PATCH] private mounts
- From: Martin Mares <[email protected]>
- Re: [PATCH] private mounts
- From: Lars Marowsky-Bree <[email protected]>
- Re: [PATCH] private mounts
- From: Miklos Szeredi <[email protected]>
- Re: [PATCH] private mounts
- From: Ram <[email protected]>
- Re: [PATCH] private mounts
- From: Miklos Szeredi <[email protected]>
- Re: [PATCH] private mounts
- From: Ram <[email protected]>
- Re: [PATCH] private mounts
- From: Miklos Szeredi <[email protected]>
- Re: [PATCH] private mounts
- From: Ram <[email protected]>
- Re: [PATCH] private mounts
- From: Miklos Szeredi <[email protected]>
- Re: [PATCH] private mounts
- From: Miklos Szeredi <[email protected]>
- Re: [PATCH] private mounts
- Prev by Date: Re: [PATCH] private mounts
- Next by Date: RE: x86-64 dual core mapping
- Previous by thread: Re: [PATCH] private mounts
- Next by thread: Re: [PATCH] private mounts
- Index(es):