mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Use logical_size() instead of physical_size() for the byte-range advisory lock. physical_size() returns st_blocks*512 which is the actual host allocation and can be smaller than the guest visible extent on sparse files, leaving part of the range unprotected. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>