Skip to main content

arcbox_snapshot/
lib.rs

1//! # arcbox-snapshot
2//!
3//! Snapshot lineage for `ArcBox` computers: the checkpoint catalog, the
4//! copy-on-write rootfs manager the checkpoints are cloned through, and
5//! the template catalog that promotes a snapshot into a reusable,
6//! versioned base image.
7//!
8//! This is an engine-layer crate — daemon-free and platform-neutral. It
9//! owns durable on-disk state and knows nothing about who boots the VM:
10//! the guest-side sandbox manager (`arcbox-computer-runtime`) drives it
11//! today, and the future registry client belongs here rather than above it.
12//!
13//! The device-mapper paths (`snapshot_cow`) only *do* anything on Linux,
14//! where `dmsetup` and thin pools exist; they compile everywhere so the
15//! layer above can too.
16
17pub mod error;
18pub mod snapshot;
19pub mod snapshot_cow;
20pub mod template_catalog;
21
22#[cfg(test)]
23mod test_support;
24
25pub use error::{Result, SnapshotError};
26pub use snapshot::{SnapshotCatalog, SnapshotInfo, SnapshotType};