package mount
import "github.com/dotcloud/docker/mount"
Index ¶
- func Mount(device, target, mType, options string) error
- func Mounted(mountpoint string) (bool, error)
- func Unmount(target string) (err error)
- type MountInfo
Functions ¶
func Mount ¶
Mount the specified options at the target path Options must be specified as fstab style
func Mounted ¶
Looks at /proc/self/mountinfo to determine of the specified mountpoint has been mounted
func Unmount ¶
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 ¶
Source Files ¶
flags_linux.go mount.go mounter_linux.go mountinfo.go
- Version
- v0.7.5
- Published
- Jan 9, 2014
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 2 minutes ago –
Tools for package owners.