package storage

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

Index

Functions

func MountRShared

func MountRShared(path string) error

MountRShared creates a bind mountpoint and marks it as rshared Expected that the filepath exists before calling this function

func ParseMountOptions

func ParseMountOptions(options []string) (flagOpts uintptr, pgFlags []uintptr, data []string)

func UnmountAllInPath

func UnmountAllInPath(ctx context.Context, path string, removeTarget bool) (err error)

func UnmountPath

func UnmountPath(ctx context.Context, target string, removeTarget bool) (err error)

UnmountPath unmounts the target path if it exists and is a mount path. If removeTarget this will remove the previously mounted folder.

func WaitForFileMatchingPattern

func WaitForFileMatchingPattern(ctx context.Context, pattern string) (string, error)

WaitForFileMatchingPattern waits for a single file that matches the given path pattern and returns the full path to the resulting file

Source Files

doc.go mount.go utilities.go

Directories

PathSynopsis
internal/guest/storage/crypt
internal/guest/storage/devicemapper
internal/guest/storage/ext4
internal/guest/storage/overlay
internal/guest/storage/pci
internal/guest/storage/plan9
internal/guest/storage/pmem
internal/guest/storage/scsi
internal/guest/storage/vmbus
internal/guest/storage/xfs
Version
v0.12.9 (latest)
Published
Oct 30, 2024
Platform
linux/amd64
Imports
13 packages
Last checked
14 hours ago

Tools for package owners.