From: Ram Pai <linuxram@us.ibm.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: viro@ZenIV.linux.org.uk, linux-fsdevel@vger.kernel.org
Subject: Re: how to show propagation state for mounts
Date: Wed, 20 Feb 2008 11:29:13 -0800 [thread overview]
Message-ID: <1203535754.28525.14.camel@ram.us.ibm.com> (raw)
In-Reply-To: <E1JRrml-0005M9-Gi@pomaz-ex.szeredi.hu>
On Wed, 2008-02-20 at 17:27 +0100, Miklos Szeredi wrote:
> > On Wed, Feb 20, 2008 at 04:39:15PM +0100, Miklos Szeredi wrote:
> > > > mountinfo - IMO needs a sane discussion of what and how should be shown
> > > > wrt propagation state
> > >
> > > Here's my take on the matter.
> > >
> > > The propagation tree can be either be represented
> > >
> > > 1) "from root to leaf" listing members of peer groups and their
> > > slaves explicitly,
> > >
> > > 2) or "from leaf to root" by identifying each peer group and then for
> > > each mount showing the id of its own group and the id of the group's
> > > master.
> > >
> > > 2) can have two variants:
> > >
> > > 2a) id of peer group is constant in time
> > >
> > > 2b) id of peer group may change
> > >
> > > The current patch does 2b). Having a fixed id for each peer group
> > > would mean introducing a new object to anchor the peer group into,
> > > which would add complexity to the whole thing.
> > >
> > > All of these are implementable, just need to decide which one we want.
> >
> > Eh... Much more interesting question: since the propagation tree spans
> > multiple namespaces in a lot of normal uses, how do we deal with
> > reconstructing propagation through the parts that are not present in
> > our namespace? Moreover, what should and what should not be kept private
> > to namespace? Full exposure of mount trees is definitely over the top
> > (it shows potentially sensitive information), so we probably want less
> > than that.
> >
> > FWIW, my gut feeling is that for each peer group that intersects with our
> > namespace we ought to expose in some form
> > * all vfsmounts belonging to that intesection
> > * the nearest dominating peer group (== master (of master ...) of)
> > that also has a non-empty intersection with our namespace
> >
> > It's less about the form of representation (after all, we generate poll
> > events when contents of that sucker changes, so one *can* get a consistent
> > snapshot of the entire thing) and more about having it self-contained
> > when we have namespaces in the play.
> >
> > IOW, the data in there should give answers to questions that make sense.
> > "Do events get propagated from this vfsmount I have to that vfsmount I have?"
> > is a meaningful one; ditto for "are events here propagated to somewhere I
> > don't see?" or "are events getting propagated here from somewhere I don't
> > see?".
>
> Well, assuming you see only one namespace. When I'm experimenting
> with namespaces and propagations, I see both (each in a separate
> xterm) and I do want to know how propagation between them happens.
>
> Your suggestion doesn't deal with that problem.
>
> Otherwise, yes it makes sense to have a consistent view of the tree
> shown for each namespace. Perhaps the solution is to restrict viewing
> the whole tree to privileged processes.
I wonder, what is wrong in reporting mounts in other namespaces that
either receive and send propagation to mounts in our namespace?
If we take that approach, we will report **only** the mounts in other
namespace which have a counter part in our namespace. After all the
filesystems backing the mounts here and there are the same(other wise
they would'nt have propagated).
And any mounts contained outside our namespace, having no propagation
relation to any mounts in our namespace, will remain hidden.
RP
>
> Miklos
next prev parent reply other threads:[~2008-02-20 19:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-20 15:39 how to show propagation state for mounts Miklos Szeredi
2008-02-20 16:04 ` Al Viro
2008-02-20 16:27 ` Miklos Szeredi
2008-02-20 19:29 ` Ram Pai [this message]
2008-02-20 21:14 ` Al Viro
2008-02-20 21:35 ` Miklos Szeredi
2008-02-22 14:46 ` [rfc patch] " Miklos Szeredi
2008-03-05 19:25 ` Serge E. Hallyn
2008-03-05 19:34 ` Miklos Szeredi
2008-03-05 20:23 ` Ram Pai
2008-03-10 6:53 ` [RFC PATCH v2] vfs: optimization to /proc/<pid>/mountinfo patch Ram Pai
2008-03-10 7:10 ` Christoph Hellwig
2008-03-10 11:39 ` Miklos Szeredi
2008-02-20 16:31 ` how to show propagation state for mounts Matthew Wilcox
2008-02-20 19:42 ` Ram Pai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1203535754.28525.14.camel@ram.us.ibm.com \
--to=linuxram@us.ibm.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=viro@ZenIV.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).