Skip to main content

prune_apfs_rootfs_cache_all

Function prune_apfs_rootfs_cache_all 

Source
pub fn prune_apfs_rootfs_cache_all(
    cache_dir: &Path,
    protected: &HashSet<String>,
) -> Result<RootfsPruneResult>
Expand description

Remove unreferenced APFS sparse-image rootfs cache entries.

The APFS cache uses <key>.sparseimage instead of directory + metadata pairs. Dot-prefixed publication temporaries remain protected from a concurrent system-prune invocation.