Re: RFE?: why no 'bind' info in /proc/mounts?

From: NeilBrown
Date: Fri Nov 01 2013 - 00:15:44 EST


On Thu, 31 Oct 2013 18:06:01 -0700 Linda Walsh <lkml@xxxxxxxxx> wrote:

>
> If I only mount 1 file (or a subdir) via "bind", it still shows the entire
> device being mounted on the "bound" directory.
>
> Is there anyway to get a bit more granularity as to *what* was
> bound on a name? (subdir/file..?)

Take a look in /proc/self/mountinfo. It contains more useful stuff about the
mount table which couldn't be put in /proc/mounts without breaking
compatibility.

NeilBrown

Attachment: signature.asc
Description: PGP signature