package computestorage

import "github.com/Microsoft/go-winio/internal/computestorage"

Index

Functions

func FormatWritableLayerVHD

func FormatWritableLayerVHD(vhdHandle windows.Handle) (err error)

FormatWritableLayerVHD formats a virtual disk for use as a writable container layer.

If the VHD is not mounted it will be temporarily mounted.

NOTE: This API had a breaking change in the operating system after Windows Server 2019. On ws2019 the API expects to get passed a file handle from CreateFile for the vhd that the caller wants to format. On > ws2019, its expected that the caller passes a vhd handle that can be obtained from the virtdisk APIs.

func GetLayerVHDMountPath

func GetLayerVHDMountPath(vhdHandle windows.Handle) (path string, err error)

GetLayerVHDMountPath returns the volume path for a virtual disk of a writable container layer.

Source Files

computestorage.go doc.go zsyscall_windows.go

Version
v0.6.2 (latest)
Published
Apr 9, 2024
Platform
windows/amd64
Imports
5 packages
Last checked
1 day ago

Tools for package owners.