package mount

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

Index

Constants

const (
	BIND        = 0
	DIRSYNC     = 0
	MANDLOCK    = 0
	NOATIME     = 0
	NODEV       = 0
	NODIRATIME  = 0
	NOEXEC      = 0
	NOSUID      = 0
	UNBINDABLE  = 0
	RUNBINDABLE = 0
	PRIVATE     = 0
	RPRIVATE    = 0
	SHARED      = 0
	RSHARED     = 0
	SLAVE       = 0
	RSLAVE      = 0
	RBIND       = 0
	RELATIME    = 0
	RELATIVE    = 0
	REMOUNT     = 0
	STRICTATIME = 0
	SYNCHRONOUS = 0
	RDONLY      = 0
)

Functions

func ForceMount

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

Mount the specified options at the target path reguardless if the target is mounted or not Options must be specified as fstab style

func ForceUnmount

func ForceUnmount(target string) (err error)

Unmount the target reguardless if it is mounted or not

func Mount

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

Mount the specified options at the target path only if the target is not mounted 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) error

Unmount the target only if it is mounted

Types

type MountInfo

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

func GetMounts

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

Source Files

flags.go flags_unsupported.go mount.go mounter_unsupported.go mountinfo.go mountinfo_unsupported.go

Version
v1.6.0-rc4
Published
Apr 2, 2015
Platform
js/wasm
Imports
4 packages
Last checked
1 minute ago

Tools for package owners.