Registry / utility / moby-sys-mountinfo

moby-sys-mountinfo

JSON →
library0.7.2gogounverified

Provides functions to retrieve and parse mount information from /proc/self/mountinfo on Linux, with support for filters.

go get github.com/moby/sys/mountinfo
INSTALL
IMPORT
SIG · MOBY-SYS-MOUNTINFO
M
moby-sys-mountinfo
utilitygov0.7.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mountinfo
github.com/moby/sys/mountinfo

Lists all current mounts.

package main import ( "fmt" "github.com/moby/sys/mountinfo" ) func main() { mounts, err := mountinfo.GetMounts(nil) if err != nil { panic(err) } for _, m := range mounts { fmt.Printf("Mount: %s at %s\n", m.Fstype, m.Mountpoint) } }
Debug
Known issues
gotchaThis package is Linux-focused; other OS support is limited.
fix
Use build tags or runtime checks for cross-platform compatibility.
affects: >=0.0.0
Upgrade
Version history
0.7.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
moby-sys-mountinfo — go get moby-sys-mountinfo · libregistry