Skip to main content

place

Function place 

Source
pub fn place(
    root: &Path,
    backup: &Backup,
    resume: bool,
) -> Result<Vec<String>, Refusal>
Expand description

Places the log, the policy and the git objects.

Objects go in before the first boot, never after. Startup reconciliation reads the log against what git holds, and a ref naming a commit the repository does not have is classed as unbackable — so the daemon appends a retraction and the log now agrees with the emptiness. Restoring into repositories the daemon made for itself would therefore erase, in signed ops, exactly the ref state being restored.

§Errors

Refuses on any filesystem error, or a bundle git will not clone.