mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Read the trailing footer sector through an AlignedFile rather than probing the device topology and reading a full logical block. The AlignedFile bounce buffer serves the trailing sector of an O_DIRECT fd whose offset is unaligned against the device block size, so the read no longer fails with EINVAL on a 4k sector backing store. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>