Discover Packages
github.com/agilebits/moby
pkg
mount
package
Version:
v0.11.1
Opens a new window with list of versions in this module.
Published: May 8, 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 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
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.