qcow-rs

docs.rs/qcow crates.io 100% documented MIT Licensed

A Rust library for working with qcow images.

Example

```rust // open qcow let qcow = qcow::open(PATH).unwrap();

// print out list of snapshots in the qcow for snapshot in qcow.snapshots() { println!( "Snapshot {:?}: {:?} (size = {})", snapshot.uniqueid, snapshot.name, snapshot.vmstate_size ); }

// create a reader for accessing the virtual hard disk let mut file = BufReader::new(File::open(PATH)?); let qcow2 = qcow.unwrap_qcow2(); let mut reader = qcow2.reader(&mut file);

// read the first 10 bytes of the virtual hard disk let mut buf = [0; 10]; reader.read_exact(&mut buf)?; ```

Features