mountpoint

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MountsInitialized = false
)

Functions

This section is empty.

Types

type DeviceNumber

type DeviceNumber uint64

func (DeviceNumber) String

func (num DeviceNumber) String() string

String return format device number

type Mount

type Mount struct {
	// mount point path
	Path string
	// xfs/ext4
	FilesystemType string
	// /dev/sda
	Device       string
	DeviceNumber DeviceNumber
	Subtree      string
	ReadOnly     bool
	Options      string
}

Mount describe mount info

func FindMount

func FindMount(path string) (*Mount, error)

FindMount find mount point info for the path

Jump to

Keyboard shortcuts

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