Skip to content

Go Linux package for retrieving mount information from /proc/[PID]/mountinfo

License

Notifications You must be signed in to change notification settings

thediveo/go-mntinfo

Repository files navigation

mntinfo

PkgGoDev GitHub build and test file descriptors Go Report Card Coverage

mntinfo is a minimalistic Linux-only Go package for discovering the currently mounted filesystems seen by processes. This package additionally supports discovering only those mounts matching a specific filesystem type.

Note: mount discovery is done using /proc/[PID]/mountinfo data from the proc filesystem – see also proc(5).

Installation

go get github.com/thediveo/go-mntinfo

Hacking It

  • to view the package documentation locally:
  • make shows the available make targets.

Copyright and License

mntinfo is Copyright 2019-23 Harald Albrecht, and licensed under the Apache License, Version 2.0.

Requirements

Linux.

For a multi-platform solution please take a look at gopsutil instead.

About

Go Linux package for retrieving mount information from /proc/[PID]/mountinfo

Resources

License

Stars

Watchers

Forks

Packages

No packages published