Skip to main content

write_bundle_if_absent

Function write_bundle_if_absent 

Source
pub fn write_bundle_if_absent(
    path: &Path,
    bundle: &str,
) -> Result<bool, PortError>
Expand description

Publishes an immutable bundle without a check-then-replace race. The hard link is an atomic create-if-absent operation on the same filesystem: two snapshot creators can agree on existing content, but neither can replace the other’s recovery point.