mountinfo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Separator              = " "
	OptionsSeparator       = ","
	OptionalFieldSeparator = "-"

	IdFieldNumber       uint8 = 0
	ParentIdFieldNumber uint8 = 1
	DeviceIdFieldNumber uint8 = 2
	RootFieldNumber     uint8 = 3
	PointFieldNumber    uint8 = 4
	OptionsFieldNumber  uint8 = 5
	OptionalFieldNumber uint8 = 6

	FSTypeFieldNumber        uint8 = 0
	SourceFieldNumber        uint8 = 1
	SupperOptionsFieldNumber uint8 = 2

	CountFirstFields   uint8 = 7
	CountSecondFields  uint8 = 3
	MinimumCountFields uint8 = CountFirstFields + CountSecondFields
)

Variables

This section is empty.

Functions

func PidPath

func PidPath(pid uint64) path.Path

Types

type Option

type Option func(p *Parser)

func WithPath

func WithPath(path path.Path) Option

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(options ...Option) *Parser

func (*Parser) Parse

func (parser *Parser) Parse() error

func (*Parser) Points

func (parser *Parser) Points() (set.Set[*Point], error)

type Point

type Point struct {
	Id             uint32
	ParentID       uint32
	DeviceID       string
	Root           path.Path
	MountPoint     path.Path
	Options        set.Set[string]
	OptionalFields set.Set[string]
	FSType         string
	MountSource    string
	SuperOptions   set.Set[string]
}

Jump to

Keyboard shortcuts

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