diskutil

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	VolumeHeadDiskPrefix = "volume-head-"
	VolumeHeadDiskSuffix = ".img"
	VolumeHeadDiskName   = VolumeHeadDiskPrefix + "%03d" + VolumeHeadDiskSuffix

	SnapshotDiskPrefix = "volume-snap-"
	SnapshotDiskSuffix = ".img"
	SnapshotDiskName   = SnapshotDiskPrefix + "%s" + SnapshotDiskSuffix

	DeltaDiskPrefix = "volume-delta-"
	DeltaDiskSuffix = ".img"
	DeltaDiskName   = DeltaDiskPrefix + "%s" + DeltaDiskSuffix

	DiskMetadataSuffix = ".meta"
	DiskChecksumSuffix = ".checksum"
)
View Source
const (
	VolumeSectorSize       = 4096
	ReplicaSectorSize      = 512
	BackingImageSectorSize = 512
)

Variables

This section is empty.

Functions

func GenerateDeltaFileName

func GenerateDeltaFileName(name string) string

func GenerateExpansionSnapshotLabels

func GenerateExpansionSnapshotLabels(size int64) map[string]string

func GenerateExpansionSnapshotName

func GenerateExpansionSnapshotName(size int64) string

func GenerateSnapTempFileName

func GenerateSnapTempFileName(fileName string) string

func GenerateSnapshotDiskChecksumName

func GenerateSnapshotDiskChecksumName(diskName string) string

func GenerateSnapshotDiskMetaName

func GenerateSnapshotDiskMetaName(diskName string) string

func GenerateSnapshotDiskName

func GenerateSnapshotDiskName(name string) string

func GetSnapshotNameFromDiskName

func GetSnapshotNameFromDiskName(diskName string) (string, error)

func GetSnapshotNameFromTempFileName

func GetSnapshotNameFromTempFileName(tmpFileName string) (string, error)

func IsHeadDisk

func IsHeadDisk(diskName string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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