qcow2
This crate can parse and read qcow2 virtual disks, as used by qemu and other emulators.
Qcow2 is a flexible format for disk images, that only allocates space as needed. It has many other interesting features.
Example
extern crate positioned_io;
extern crate qcow2;
use ReadAt;
use Qcow2;
// Open a qcow2 file.
let file = try!;
let qcow = try!;
// Read some data from the middle.
let reader = try!;
let mut buf = vec!;
try!;
Documentation
http://vasi.github.io/qcow2-rs/qcow2/
Usage
This crate works with Cargo and is on
crates.io. Add it to your Cargo.toml
like so:
[]
= "0.1.0"