Documentation ¶
Index ¶
- Constants
- func Mark(path, markPath string) error
- func Mount(path, mntPath string) error
- func Mounted(path string, mounts []*mount.Info) (bool, error)
- func ShiftfsSupported(dir string) (bool, error)
- func ShiftfsSupportedOnOverlayfs(dir string) (bool, error)
- func Unmount(path string) error
- type MountPoint
Constants ¶
View Source
const SHIFTFS_MAGIC int64 = 0x6a656a62
Variables ¶
This section is empty.
Functions ¶
func Mark ¶
Mark performs a shiftfs mark-mount for path on the given markPath (e.g., Mark("/a/b", "/c/d") causes "b" to be mounted on "d" and "d" to have a shiftfs mark).
func Mount ¶
Mount performs a shiftfs mount on the given path; the path must have a shiftfs mark on it already (e.g., Mount("/c/d", "/x/y") requires that "d" have a shiftfs mark on it and causes "d" to be mounted on "y" and "y" to have a shiftfs mount).
func Mounted ¶
Returns a boolean indicating if the given path has a shiftfs mount on it (mark or actual mount).
func ShiftfsSupported ¶
ShiftfsSupported checks if shiftfs is supported on the host.
func ShiftfsSupportedOnOverlayfs ¶
ShiftfsSupported checks if shiftfs-on-overlayfs is supported on the host.
Types ¶
type MountPoint ¶
Describes a shiftfs mount point
Click to show internal directories.
Click to hide internal directories.