package
Version:
v0.11.0
Opens a new window with list of versions in this module.
Published: May 7, 2014
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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
Unmount the target reguardless if it is mounted or not
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
Looks at /proc/self/mountinfo to determine of the specified
mountpoint has been mounted
Unmount the target only if it is mounted
type MountInfo struct {
Id, Parent, Major, Minor int
Root, Mountpoint, Opts string
Fstype, Source, VfsOpts string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.