mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add a test utility that converts standard uncompressed clusters in a QCOW2 image into compressed clusters in place. It walks the L1/L2 tables, compresses each allocated cluster with raw deflate, appends the compressed payload at the end of the file, and rewrites the L2 entry with the compressed layout. This enables end to end testing of the compressed read path without external tools like qemu-img. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>