[Devel] Re: How to query mount propagation state?

Ram Pai linuxram at us.ibm.com
Mon Apr 16 10:39:46 PDT 2007


On Mon, 2007-04-16 at 12:34 +0200, Miklos Szeredi wrote:
> Currently one of the difficulties with mount propagations is that
> there's no way to know the current state of the propagation tree.
> 
> Has anyone thought about how this info could be queried from
> userspace?

I am attaching two patches that I had done way back in Oct 2006 
with Al Viro. I had sent these patches to Al Viro. But I forgot to
follow them up, I guess so did Al Viro.

The first patch disambiguates multiple mount-instances of the same
filesystem (or part of the same filesystem), by introducing a new
interface /proc/mounts_new. 

The second patch introduces a new proc interface that exposes all the
propagation trees within a namespace.  It does not show propagated
mounts residing in a different namespace (for privacy reasons). Maybe
one could modify the patch a little, to allow it; if the user has
root priviledges. 

RP

PS: Sorry these are attachments instead of inline patches. I am scared
of inlining in evolution. If needed I can send inline patches through
mutt.

> 
> Thanks,
> Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mounts.patch
Type: text/x-patch
Size: 12178 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/devel/attachments/20070416/7a412758/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: propagation.patch
Type: text/x-patch
Size: 7691 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/devel/attachments/20070416/7a412758/attachment-0003.bin>
-------------- next part --------------
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers


More information about the Devel mailing list