lkml.org 
[lkml]   [2010]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/34] VFS: Add CL_NO_SLAVE flag to clone_mnt()/copy_tree()
On Mon, Sep 20, 2010 at 08:03:44PM -0400, Valerie Aurora wrote:
> On Sun, Sep 19, 2010 at 10:25:53PM -0700, Ram Pai wrote:
> >
> > I understand your intentions, but I think you are making a wrong assumption.
> > You seem to be thinking that if a slave-mount is cloned, the new cloned
> > mount will also be a slave-mount and will hence receive propagations. As
> > per shared subtree semantics, a slave-mount when cloned will create a private
> > mount. Since your intention is to avoid generating any new mounts that
> > recieve propagations, you should be checking for shared-mounts and
> > slave-shared-mounts because these are the two kind of mounts that when
> > cloned create new mounts that receive propagation.
>
> No. This isn't about the semantics of the clone mount operation. It
> is about the administrator creating a slave mount, unioning it, and
> then being surprised when the unioned file system does not receive
> mount propagation events.
>
> Think of the source vfsmount tree as a set of command line arguments
> for the union mount.

Ok. In that case, you introduced a subtle change in the semantics of clone_mnt().
As I understand it, the flags parameter of clone_mnt() are meant to be a modifier
for the cloned mount, not a filter on the source mount.

RP


\
 
 \ /
  Last update: 2010-09-27 20:11    [W:0.132 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site