crosvm/src
Dylan Reid 2dcb632405 qcow: Set refcounts for initial clusters.
All qcow clusters need to have their refcounts set. Add a `new` method
to `Qcowfile` and use it instead of just headers from the library.

The new method will loop over the initial clusters and initialize their
refcounts.

Add a `create_qcow2` option to the main executable so there is a way to
test image creation that doesn't require DBUS and Concierge.

BUG=none
TEST='crosvm create_qcow2 /tmp/file.qcow2 1000000'
'qemu-img check /tmp/file.qcow2'
no errors reported.

Change-Id: I8798df5942fb23f79cc7ca86820d0783d1f2b608
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1136900
Reviewed-by: Stephen Barber <smbarber@chromium.org>
2018-07-16 03:42:07 -07:00
..
plugin plugin: allow retrieving and setting VCPU events 2018-07-11 18:48:50 -07:00
argument.rs crosvm: argument parsing without clap 2017-09-02 00:18:25 -07:00
linux.rs Move gpu allocator to resources 2018-07-09 17:59:23 -07:00
main.rs qcow: Set refcounts for initial clusters. 2018-07-16 03:42:07 -07:00