* RFE?: why no 'bind' info in /proc/mounts?
@ 2013-11-01 1:06 Linda Walsh
2013-11-01 4:15 ` NeilBrown
0 siblings, 1 reply; 4+ messages in thread
From: Linda Walsh @ 2013-11-01 1:06 UTC (permalink / raw)
To: LKML
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..?)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: RFE?: why no 'bind' info in /proc/mounts?
2013-11-01 1:06 RFE?: why no 'bind' info in /proc/mounts? Linda Walsh
@ 2013-11-01 4:15 ` NeilBrown
2013-11-01 8:49 ` Linda Walsh
0 siblings, 1 reply; 4+ messages in thread
From: NeilBrown @ 2013-11-01 4:15 UTC (permalink / raw)
To: Linda Walsh; +Cc: LKML
[-- Attachment #1: Type: text/plain, Size: 492 bytes --]
On Thu, 31 Oct 2013 18:06:01 -0700 Linda Walsh <lkml@tlinx.org> 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: RFE?: why no 'bind' info in /proc/mounts?
2013-11-01 4:15 ` NeilBrown
@ 2013-11-01 8:49 ` Linda Walsh
2013-11-01 11:57 ` Karel Zak
0 siblings, 1 reply; 4+ messages in thread
From: Linda Walsh @ 2013-11-01 8:49 UTC (permalink / raw)
To: NeilBrown; +Cc: LKML
Ah... didn't know about the other format file... thanks!
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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: RFE?: why no 'bind' info in /proc/mounts?
2013-11-01 8:49 ` Linda Walsh
@ 2013-11-01 11:57 ` Karel Zak
0 siblings, 0 replies; 4+ messages in thread
From: Karel Zak @ 2013-11-01 11:57 UTC (permalink / raw)
To: Linda Walsh; +Cc: NeilBrown, LKML
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@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-01 11:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-01 1:06 RFE?: why no 'bind' info in /proc/mounts? Linda Walsh
2013-11-01 4:15 ` NeilBrown
2013-11-01 8:49 ` Linda Walsh
2013-11-01 11:57 ` Karel Zak
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).