Skip to main content

Crate qcow2

Crate qcow2 

Source
Expand description

Pure-Rust read-only QCOW2 disk image reader.

Supports QCOW2 v2 and v3 (uncompressed, no backing file, no encryption). Uses a two-level L1→L2 cluster lookup matching QEMU’s own design.

Structs§

Qcow2Info
Forensically-relevant QCOW2 header facts, parsed leniently — unlike [Qcow2Header::parse], this does not reject backing files, encryption, or unsupported incompatible features, so an analyzer can inspect images the reader cannot decode.
Qcow2Reader
Read-only QCOW2 container reader.
Qcow2RefcountReport
Summary of the refcount metadata and the orphan scan.
Qcow2Snapshot
One internal snapshot recorded in a QCOW2 image.

Enums§

Qcow2Error

Functions§

inspect
Inspect a QCOW2 image’s header for forensic facts (version, backing file, encryption, snapshots, incompatible-feature bits) without decoding it — works on images the reader rejects (encrypted, backing-file, etc.).
refcount_report
Best-effort refcount/orphan report for the QCOW2 image at path.
snapshots
Enumerate the internal snapshots in the QCOW2 image at path.