Documentation
¶
Index ¶
- func Changes(ctx context.Context, changeFn fs.ChangeFunc, ...) error
- func GetOverlayLayers(m mount.Mount) ([]string, error)
- func GetUpperdir(lower, upper []mount.Mount) (string, error)
- func IsOverlayMountType(mnt mount.Mount) bool
- func VolatileIncompatDir(mnt mount.Mount) string
- func VolatileIncompatDirs(mounts []mount.Mount) []string
- func WriteUpperdir(ctx context.Context, w io.Writer, upperdir string, lower []mount.Mount) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Changes ¶
func Changes(ctx context.Context, changeFn fs.ChangeFunc, upperdir, upperdirView, base string) error
Changes is continuty's `fs.Change`-like method but leverages overlayfs's "upperdir" for computing the diff. "upperdirView" is overlayfs mounted view of the upperdir that doesn't contain whiteouts. This is used for computing changes under opaque directories.
func GetOverlayLayers ¶
GetOverlayLayers returns all layer directories of an overlayfs mount.
func GetUpperdir ¶
GetUpperdir parses the passed mounts and identifies the directory that contains diff between upper and lower.
func IsOverlayMountType ¶
IsOverlayMountType returns true if the mount type is overlay-based
func VolatileIncompatDir ¶ added in v0.19.9
VolatileIncompatDir returns the overlayfs incompat directory for a mount that uses the "volatile" option. An empty string means the mount doesn't use volatile overlayfs or doesn't include a workdir option.
func VolatileIncompatDirs ¶ added in v0.19.9
VolatileIncompatDirs returns de-duplicated incompat directories for mounts that use the "volatile" option.
Types ¶
This section is empty.