package mount

import "github.com/dotcloud/docker/mount"

Index

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

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

func GetMounts

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

Source Files

mount.go mountinfo.go

Version
v0.7.6
Published
Jan 15, 2014
Platform
js/wasm
Imports
6 packages
Last checked
1 minute ago

Tools for package owners.