Skip to main content

platform_dir

Function platform_dir 

Source
pub fn platform_dir(root: &Path) -> PathBuf
Expand description

Store-wide lock separating extraction from collection.

Extraction holds it shared while it populates the content store, because a blob is briefly reachable only from the store itself: it is renamed into place before being hardlinked into the package tree, and in that window its link count does not yet reflect the reference that is about to exist. Collection holds it exclusive, which proves no extraction is inside that window and therefore that link counts can be trusted. The GL build store: one directory per label holding the pinned build’s file. Its extraction lives under pkg/ like any package.