mount

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mount

func Mount(device, target, mType, options string) error

Mount the specified options at the target path Options must be specified as fstab style

func Mounted

func Mounted(mountpoint string) (bool, error)

Looks at /proc/self/mountinfo to determine of the specified mountpoint has been mounted

func Unmount

func Unmount(target string) (err error)

Unmount the target only if it is mounted

Types

type MountInfo added in v0.7.4

type MountInfo struct {
	Id, Parent, Major, Minor int
	Root, Mountpoint, Opts   string
	Fstype, Source, VfsOpts  string
}

func GetMounts added in v0.7.4

func GetMounts() ([]*MountInfo, error)

Jump to

Keyboard shortcuts

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