qed

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package qed implements a read-only reader for the QEMU Enhanced Disk (QED) format, a two-level-page-table virtual disk image. On-disk fields are little-endian, and allocation is tracked through an L1 table of L2 tables that map logical clusters to physical file offsets.

The format predates and was superseded by qcow2 in QEMU; QED images with a backing file are rejected because backing-file resolution is not supported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

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

Disk is a read-only QED (QEMU Enhanced Disk) image. It implements io.ReaderAt. All on-disk fields are little-endian, unlike qcow2.

func Open

func Open(ra io.ReaderAt) (*Disk, error)

Open parses the QED header and L1 table at the start of ra and returns a ready-to-read Disk.

func (*Disk) Close

func (d *Disk) Close() error

Close releases no resources; the caller owns ra.

func (*Disk) ReadAt

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

ReadAt reads len(p) bytes at off, matching io.ReaderAt semantics.

func (*Disk) Size

func (d *Disk) Size() int64

Size returns the virtual disk size in bytes.

Jump to

Keyboard shortcuts

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