vma

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package vma reads Proxmox vzdump backup archives (.vma). A VMA holds a small header (device list, config blobs) followed by a sequence of extents that describe each device's data as sparse 64 KiB clusters, so the archive is deflated into one or more raw disk images for the rest of udf to walk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

type Disk struct {
	Name string
	// contains filtered or unexported fields
}

Disk is one device extracted from a VMA.

func (*Disk) Close

func (d *Disk) Close() error

Close releases the temporary file backing this disk.

func (*Disk) ReadAt

func (d *Disk) ReadAt(p []byte, off int64) (int, error)

ReadAt reads from the extracted raw image.

func (*Disk) Size

func (d *Disk) Size() int64

Size returns the device size in bytes.

type Image

type Image struct {
	Disks []*Disk
}

Image is an opened VMA archive.

func OpenFile

func OpenFile(path string) (*Image, error)

OpenFile opens path and extracts each device to a temporary raw file.

func (*Image) Close

func (img *Image) Close() error

Close releases every extracted disk.

Jump to

Keyboard shortcuts

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