Skip to content

Commit

Permalink
mountinfo.Info: refresh doc
Browse files Browse the repository at this point in the history
Refresh documentation about mountinfo.Info fields, based on the latest
proc(5) from man-pages v5.08.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Nov 6, 2020
1 parent 76d9700 commit 420f27f
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions mountinfo/mountinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,38 @@ type Info struct {
// ID is a unique identifier of the mount (may be reused after umount).
ID int

// Parent indicates the ID of the mount parent (or of self for the top of the
// mount tree).
// Parent is the ID of the parent mount (or of self for the root
// of this mount namespace's mount tree).
Parent int

// Major indicates one half of the device ID which identifies the device class.
Major int
// Major and Minor are the major and the minor components of the Dev
// field of unix.Stat_t structure returned by unix.*Stat calls for
// files on this filesystem.
Major, Minor int

// Minor indicates one half of the device ID which identifies a specific
// instance of device.
Minor int

// Root of the mount within the filesystem.
// Root is the pathname of the directory in the filesystem which forms
// the root of this mount.
Root string

// Mountpoint indicates the mount point relative to the process's root.
// Mountpoint is the pathname of the mount point relative to the
// process's root directory.
Mountpoint string

// Options represents mount-specific options.
// Options is a comma-separated list of mount options.
Options string

// Optional represents optional fields.
// Optional are zero or more fields of the form "tag[:value]",
// separated by a space. Currently, the possible optional fields are
// "shared", "master", "propagate_from", and "unbindable". For more
// information, see mount_namespaces(7) Linux man page.
Optional string

// FSType indicates the type of filesystem, such as EXT3.
// FSType is the filesystem type in the form "type[.subtype]".
FSType string

// Source indicates filesystem specific information or "none".
// Source is filesystem-specific information, or "none".
Source string

// VFSOptions represents per super block options.
// VFSOptions is a comma-separated list of superblock options.
VFSOptions string
}

0 comments on commit 420f27f

Please sign in to comment.