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

From: Karel Zak
Date: Fri Nov 01 2013 - 07:57:54 EST


On Fri, Nov 01, 2013 at 01:49:08AM -0700, Linda Walsh wrote:
>
>
> Ah... didn't know about the other format file... thanks!

Or use more user friendly findmnt(8) command:


# mount --bind /usr/local/bin /mnt/test

# findmnt /mnt/test
TARGET SOURCE FSTYPE OPTIONS
/mnt/test /dev/sda4[/usr/local/bin] ext4 rw,relatime,data=ordered

Karel

> On 10/31/2013 9:15 PM, NeilBrown wrote:
> >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

--
Karel Zak <kzak@xxxxxxxxxx>
http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/