[PATCH] fs: store MS_BIND as MNT_BIND and show it in mountinfo

Seth Forshee seth.forshee at canonical.com
Thu Feb 2 21:12:14 UTC 2017


On Thu, Feb 02, 2017 at 01:27:11PM -0600, Seth Forshee wrote:
> Note however that the mount point could appear more than once,
> with mounts covering other mounts, and I assume you really want to know
> about the topmost mount (the one whose contents you'd see in the mount
> point). I suspect this will always be the last entry in mountinfo with
> $dest as its mount point, but I need to confirm this.

This should be true. mountinfo displays mounts in the order that they
appear in the mount namespace's list of mounts, and as new mounts are
added at the end of the list a new mount will always appear after any
mounts which are shadowed by it.

Seth




More information about the kernel-team mailing list