Documentation ¶
Index ¶
- Constants
- func GenerateDeltaFileName(name string) string
- func GenerateExpansionSnapshotLabels(size int64) map[string]string
- func GenerateExpansionSnapshotName(size int64) string
- func GenerateSnapTempFileName(fileName string) string
- func GenerateSnapshotDiskChecksumName(diskName string) string
- func GenerateSnapshotDiskMetaName(diskName string) string
- func GenerateSnapshotDiskName(name string) string
- func GetSnapshotNameFromDiskName(diskName string) (string, error)
- func GetSnapshotNameFromTempFileName(tmpFileName string) (string, error)
- func IsHeadDisk(diskName string) bool
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 IsHeadDisk ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.