package overlay

import "github.com/Microsoft/hcsshim/internal/guest/storage/overlay"

Index

Functions

func Mount

func Mount(ctx context.Context, layerPaths []string, upperdirPath, workdirPath, rootfsPath string, readonly bool, containerId string, securityPolicy securitypolicy.SecurityPolicyEnforcer) (err error)

Mount creates an overlay mount with `layerPaths` at `rootfsPath`.

If `upperdirPath != ""` the path will be created. On mount failure the created `upperdirPath` will be automatically cleaned up.

If `workdirPath != ""` the path will be created. On mount failure the created `workdirPath` will be automatically cleaned up.

Always creates `rootfsPath`. On mount failure the created `rootfsPath` will be automatically cleaned up.

Source Files

overlay.go

Version
v0.9.8
Published
Mar 15, 2023
Platform
linux/amd64
Imports
8 packages
Last checked
9 minutes ago

Tools for package owners.