package lcow
import "github.com/Microsoft/hcsshim/internal/lcow"
Index ¶
- Constants
- func CreateScratch(ctx context.Context, lcowUVM *uvm.UtilityVM, destFile string, sizeGB uint32, cacheFile string) error
Constants ¶
const ( // DefaultScratchSizeGB is the size of the default LCOW scratch disk in GB DefaultScratchSizeGB = 20 )
Functions ¶
func CreateScratch ¶
func CreateScratch(ctx context.Context, lcowUVM *uvm.UtilityVM, destFile string, sizeGB uint32, cacheFile string) error
CreateScratch uses a utility VM to create an empty scratch disk of a requested size. It has a caching capability. If the cacheFile exists, and the request is for a default size, a copy of that is made to the target. If the size is non-default, or the cache file does not exist, it uses a utility VM to create target. It is the responsibility of the caller to synchronise simultaneous attempts to create the cache file.
Source Files ¶
- Version
- v0.8.9
- Published
- Apr 28, 2020
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- now –
Tools for package owners.