Documentation ¶
Index ¶
- func BindMount(source, target, fsType string, recursive, readOnly bool, ...) error
- func GetDeviceByFSUUID(fsuuid string) (device string, err error)
- func GetMounts(includeMajorMinorMap bool) (...)
- func Mkdir(name string, perm os.FileMode) (err error)
- func Mount(device, target, fsType string, flags []string, superBlockFlags string) error
- func Unmount(target string, force, detach, expire bool) error
- type ErrMountPointAlreadyMounted
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindMount ¶
func BindMount(source, target, fsType string, recursive, readOnly bool, superBlockFlags string) error
BindMount does bind-mount of source to target.
func GetDeviceByFSUUID ¶
GetDeviceByFSUUID get device name by it's FSUUID.
func GetMounts ¶
func GetMounts(includeMajorMinorMap bool) (mountPointMap, deviceMap, majorMinorMap, rootMountPointMap map[string]utils.StringSet, err error)
GetMounts returns mount-point to devices and devices to mount-point maps.
Types ¶
type ErrMountPointAlreadyMounted ¶
ErrMountPointAlreadyMounted denotes mount point already mounted error.
func (*ErrMountPointAlreadyMounted) Error ¶
func (e *ErrMountPointAlreadyMounted) Error() string
Error is error interface compatible method.
Click to show internal directories.
Click to hide internal directories.