Skip to main content

Crate hd_mount

Crate hd_mount 

Source
Expand description

§hd-mount

FUSE filesystem projection from a Merkle DAG for hyperdocker.

This crate implements a virtual filesystem layer that projects content from the CAS store through the Merkle DAG into a mount point. It uses FUSE to present a read-only view of the environment’s files, with overlay support for writable layers.

§Key Types

  • ProjectedFs - Projects DAG nodes as filesystem entries
  • Overlay - Writable overlay on top of the projected filesystem
  • FuseFs - FUSE filesystem implementation
  • MountManager - Manages mount/unmount lifecycle
  • MountHandle - Handle to an active mount point

§Example

use hd_mount::MountManager;
use std::path::Path;

let mut manager = MountManager::new(Path::new("/tmp/mnt")).unwrap();
// register_mount takes an env ContentHash and creates the mountpoint directory

Re-exports§

pub use projected::ProjectedFs;
pub use overlay::Overlay;
pub use fuse::FuseFs;
pub use manager::MountManager;
pub use manager::MountHandle;
pub use manager::MountState;

Modules§

fuse
FUSE filesystem adapter. Bridges fuser::Filesystem to ProjectedFs.
manager
overlay
projected