snapshot_content_file

Function snapshot_content_file 

Source
pub fn snapshot_content_file(
    path: impl AsRef<Path>,
) -> Result<ContentFileSnapshot>
Expand description

Pin one regular-file revision and publish it into the shared content CAS.

Opening uses the same nonblocking regular-file guard as scheduler snapshots, so FIFOs and device nodes are rejected without waiting. The digest, publication, and returned lease all validate the single pinned revision.