Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FilesystemType superblock magic numbers for filesystems, // to be used for IsMountFS. FilesystemTypeBPFFS = unix.BPF_FS_MAGIC FilesystemTypeCgroup2 = unix.CGROUP2_SUPER_MAGIC )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MountInfo ¶
type MountInfo struct {
MountID int64
ParentID int64
StDev string
Root string
MountPoint string
MountOptions string
OptionalFields []string
FilesystemType string
MountSource string
SuperOptions string
}
MountInfo is a struct representing information from /proc/pid/mountinfo. More information about file syntax: https://www.kernel.org/doc/Documentation/filesystems/proc.txt
func GetMountInfo ¶
GetMountInfo returns a slice of *MountInfo with information parsed from /proc/self/mountinfo
Click to show internal directories.
Click to hide internal directories.