mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Request::execute seeked the disk to the request sector and then read or wrote sequentially through the cursor. Walk a running offset with read_exact_at and write_all_at instead, and flush with fsync, so the bound becomes FileExt and FileSync rather than Seek, Read, and Write. The seek step is gone, so drop the now unused ExecuteError::Seek. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>