mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add a parameterized helper that creates a 1 GiB ext4 loop filesystem with 4096 byte sectors, populates it with a small data disk in the requested format, attaches that disk with direct=on, and runs a 4096 byte aligned dd round trip with oflag=direct and iflag=direct followed by cmp. Wrappers exercise raw, qcow2, fixed VHD, and vhdx. The qcow2 and vhdx wrappers expect the guest to see the on disk LBS of 512. The others expect the host LBS of 4096. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>