Help us shape the future of Go! Take the 2026 Go Developer Survey

mtab

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package mtab parses /proc/self/mounts entries on a Linux system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Fsname string // name of mounted file system
	Dir    string // file system path prefix
	Type   string // mount type
	Opts   string // mount options
	Freq   int    // dump frequency in days
	Passno int    // pass number on parallel fsck
}

Entry corresponds to mntent struct. See getmntent(3) manpage for further details.

func Entries

func Entries(fname string) ([]Entry, error)

Entries reads mtab entries from a given file. Usually you should use `/etc/fstab` or `/proc/self/mounts` as a file name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL