mount.2: Mention /proc/PID/mountinfo

Many people are unaware of the /proc/PID/mountinfo file. Provide
a helpful clue here.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-07-13 07:13:05 +02:00
parent 93f5b0f8f4
commit 3ef2a133bf
1 changed files with 10 additions and 2 deletions

View File

@ -794,9 +794,17 @@ subsequently creates) and vice versa.
The Linux-specific
.I /proc/[pid]/mounts
file exposes the list of mount points in the mount
namespace of the process with the specified ID; see
namespace of the process with the specified ID.
The
.I /proc/[pid]/mountinfo
file exposes even more information about mount points,
including the propagation type and mount ID information that makes it
possible to discover the parental relationship between mount points.
See
.BR proc (5)
for details.
and
.BR mount_namespaces (7)
for details of these files.
.SH SEE ALSO
.BR mountpoint (1),
.BR umount (2),