crosvm/qcow_utils
Daniel Verkamp 7f9b9ea344 qcow: add convert API and export it in qcow_utils
This will be used in vm_concierge's ExportDiskImage function in order to
allow a minimal qcow2 image to be written on the fly (containing only
the required clusters in a tightly-packed image file). It also allows
future flexibility to change the underlying disk image file format while
still exporting qcow2 images (e.g. via `vmc export`).

For testing, add a qcow_img `convert` command, which can convert
between raw and qcow2 as both source and destination.

BUG=None
TEST=Use qcow_img to convert a raw image to qcow2 and back and verify
     its contents are the same as the original.

Change-Id: I74167aca9a9c857d892e24adf5ee17afc0f6e6b5
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1272060
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
2018-10-18 19:01:06 -07:00
..
src qcow: add convert API and export it in qcow_utils 2018-10-18 19:01:06 -07:00
Cargo.toml qcow: Add a utility program for qcow analysis 2018-09-19 15:40:06 -07:00
libqcow_utils.pc.in qcow_utils: add pkgconfig script 2018-02-01 21:29:32 -08:00
platform2_preinstall.sh qcow_utils: add pkgconfig script 2018-02-01 21:29:32 -08:00