Skip to main content

Module fs

Module fs 

Source
Expand description

Filesystem-based object store.

Structs§

FsStore
Filesystem-based storage for Heddle objects.
PackInstallIntent
Durable intent for a single pack+index install (identifiers only).
PackInstallMetricsSnapshot
Snapshot of process-local pack-install counters (resettable in tests).
PackInstallRecoverReport
Summary of recovery work performed.

Enums§

LooseObjectWriteMode
PackInstallPhase
Install lifecycle phase recorded in the durable intent.

Constants§

DEFAULT_PACK_INSTALL_INTENT_TTL_SECS
Default TTL for abandoned install intents / orphan staging (24 hours).

Functions§

install_pack_bytes_journaled
Journaled in-memory install. Returns content-addressed pack_name.
pack_install_metrics_reset
Reset process-local metrics (tests / process start hooks).
pack_install_metrics_snapshot
Read process-local pack-install metrics.
read_file_bytes_for_pack
Read a pack file as zero-copy Bytes. For packs that clear the mmap threshold, the underlying memory is the mmap’d region — every Bytes::slice into it is a zero-copy view. Smaller packs fall back to a heap read wrapped in Bytes. Public because the pack reader lives in a sibling module and needs to bypass the pub(super) gate on read_file_bytes.
recover_pack_install_intents
recover_pack_install_intents_with_ttl