Files
moli/moli-disk-pool/src/lib.rs
T
ldm0 92bdee88a4 feat(disk-pool): add shared temporary-file extent storage
Store immutable resource extents in one anonymous temporary file using positioned I/O. Reuse exact or worst-fit holes through offset and size indexes, coalesce released extents, and preserve bounded-capacity and failure behavior. Include allocator regression tests, concise documentation, and runnable examples.
2026-09-21 16:47:19 +08:00

20 lines
547 B
Rust

//! Shared single-file storage for resource data.
//!
//! The allocation policy follows Blink's `DiskDataAllocator`: allocations are
//! represented by `(offset, len)` extents in one anonymous temporary file,
//! exact free extents are preferred, otherwise the largest fitting extent is
//! split, and adjacent free extents are coalesced on release.
mod allocation;
mod data;
mod file;
mod pool;
mod reservation;
pub use data::DiskData;
pub use pool::{DiskPool, DiskPoolDiagnostics};
pub use reservation::ReservedChunk;
#[cfg(test)]
mod tests;