Skip to main content

Module versioning

Module versioning 

Source
Expand description

MARS reflink snapshots with epoch-based version management and retention. Mirror & Archive Recovery System (MARS) – zero-cost reflink snapshots with epoch-based version management and retention policies.

Structs§

FileVersion
A single file version entry in the MARS versioning index.
VersionLookup
In-memory index mapping inodes and content hashes to version snapshots.

Functions§

cleanup_cli
CLI entry point for version cleanup with optional dry-run mode.
cleanup_versions
Removes old versions exceeding count or size limits, preserving the newest.
copy_version_to_path
Extracts a specific version epoch to a destination path.
force_version_cli
CLI entry point for forcing a tagged version snapshot (not yet implemented).
list_versions
Lists all MARS versions for a live file by scanning the target root.
print_versions_table
Prints a formatted table of file versions to stdout, showing the last limit entries.
prune_global_history
Deletes oldest version snapshots globally until bytes_to_free bytes are reclaimed.
revert_file
Atomically reverts a live file to the specified version epoch via reflink.
verify_content_match
Compares two files by sampling the first and last 64KB of content.