fs

package
v0.0.0-...-e0566ed Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProcMount represents the /proc/mounts file
	ProcMount = "/proc/mounts"
)

Variables

This section is empty.

Functions

func GetDevID

func GetDevID(dir string) (uint64, error)

GetDevID returns device id via syscall according to the input directory.

Types

type Mount

type Mount struct {
	Device     string
	MountPoint string
	FSType     string
	Opts       string // fs options, such as rw, ro.
	Dump       string // backup options, set 0 or 1, 1 will use dump to backup.
	Pass       string // fsck options, set 0 or 1 or 2, 0 will not check, 1 earlier than 2 to check.
}

Mount defines the attribute of mount.

func GetMountPoint

func GetMountPoint(file string) (*Mount, error)

GetMountPoint returns the mount point information of file system

Jump to

Keyboard shortcuts

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