dmlegacy

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 24 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateSnapshot

func ActivateSnapshot(vm *api.VM) (devicePath string, err error)

ActivateSnapshot sets up the snapshot with devicemapper so that it is active and can be used. It returns the path of the bootable snapshot device.

func AllocateAndPopulateOverlay

func AllocateAndPopulateOverlay(vm *api.VM) error

AllocateAndPopulateOverlay creates the overlay.dm file on top of an image, and configures the snapshot in all ways needed. It also copies in contents from the host as needed, and configures networking.

func CreateImageFilesystem

func CreateImageFilesystem(img *api.Image, src source.Source) error

CreateImageFilesystem creates an ext4 filesystem in a file, containing the files from the source

func DeactivateSnapshot added in v0.8.0

func DeactivateSnapshot(vm *api.VM) error

DeactivateSnapshot deactivates the snapshot by removing it with dmsetup

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL