Skip to main content

Module sync

Module sync 

Source
Expand description

Push/pull between VFS and a persistent host workspace directory (session VM staging).

Layout matches super::super::sandbox::export_vfs_to_temp_dir: workspace_parent holds the leaf directory named after the last segment of vfs_path (same leaf naming as the sandbox export helpers).

Enums§

VmSyncError
Errors from workspace sync helpers.

Functions§

pull_workspace_to_vfs
Merge host workspace tree into the VFS at vfs_path (add/update only; same semantics as sandbox::sync_host_dir_to_vfs).
push_full
Remove the exported leaf directory (if present), then copy the full VFS subtree at vfs_path into workspace_parent, and restore ELF execute bits under target/.
push_incremental
For each file under the VFS subtree at vfs_path, write to the host workspace only when missing or content differs.