Skip to main content

rootfs_overlay

Function rootfs_overlay 

Source
pub fn rootfs_overlay(
    upper: Arc<BoxedLayer>,
    lowers: Vec<Arc<BoxedLayer>>,
    work: &Path,
) -> Result<FuseFileSystemMount<OverlayFs>, MountError>
Expand description

Build the v1 rootfs overlay as an [FsMount].

upper is the single writable layer (copy-ups and whiteouts land here); lowers are the read-only layers, highest priority first. The returned FuseFileSystemMount presents the merged view with full overlay semantics (copy-on-write, whiteout-on-delete, opaque dirs) implemented by OverlayFs.

work is the overlay work directory (scratch space for atomic operations).