shiftfs

package module
v0.0.0-...-a33b350 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const SHIFTFS_MAGIC int64 = 0x6a656a62

Variables

This section is empty.

Functions

func Mark

func Mark(path, markPath string) error

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

func Mount(path, mntPath string) error

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

func Mounted(path string, mounts []*mount.Info) (bool, error)

Returns a boolean indicating if the given path has a shiftfs mount on it (mark or actual mount).

func ShiftfsSupported

func ShiftfsSupported(dir string) (bool, error)

ShiftfsSupported checks if shiftfs is supported on the host.

func ShiftfsSupportedOnOverlayfs

func ShiftfsSupportedOnOverlayfs(dir string) (bool, error)

ShiftfsSupported checks if shiftfs-on-overlayfs is supported on the host.

func Unmount

func Unmount(path string) error

Unmount perform a shiftfs unmount on the given path. The path must have a shiftfs mark or mount on it.

Types

type MountPoint

type MountPoint struct {
	Source   string
	Readonly bool
}

Describes a shiftfs mount point

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL