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 entriesOverlay- Writable overlay on top of the projected filesystemFuseFs- FUSE filesystem implementationMountManager- Manages mount/unmount lifecycleMountHandle- 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 directoryRe-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;