Skip to main content

prune_stratis_snapshots

Function prune_stratis_snapshots 

Source
pub async fn prune_stratis_snapshots(
    conn: &Connection,
    pool_object_path: &str,
    prefix: &str,
    keep: usize,
) -> Result<usize, StratisError>
Expand description

Prune old foxing-created Stratis snapshots, keeping the N most recent. Only prunes snapshots whose name starts with prefix. Tagged snapshots (name contains user-defined tags) are never pruned.