mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: memory_manager: Add SEEK_DATA-based extent iterator
Adds next_data_extent: a streaming helper that returns the next populated extent within a window of a file descriptor using lseek(SEEK_DATA) / lseek(SEEK_HOLE). Used by subsequent commits to walk the snapshot file extent-by-extent without collecting the full extent list. Returns an error on fds or filesystems without SEEK_HOLE support so the caller can fall back to a dense write path. Assisted-by: Claude:Opus-4.7 Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -2557,6 +2557,7 @@ dependencies = [
|
||||
"serde_json",
|
||||
"serial_buffer",
|
||||
"signal-hook",
|
||||
"tempfile",
|
||||
"thiserror",
|
||||
"tracer",
|
||||
"uuid",
|
||||
|
||||
Reference in New Issue
Block a user