mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-30 21:09:14 -04:00
sources.track skipped two steps volumes.index does. Without ensure_restored a partition that never restored is barred from saving over an existing snapshot, so tracking a root that already had one would index and then fail to persist. Without clear_for_reindex, entries from a previous pass that this one does not revisit linger in the arena as files that no longer exist. Also writes down how it differs from volumes.track, since the names collide on the word rather than the meaning: volumes.track marks a medium as belonging to a library and indexes nothing, this makes an index of what is on one. volumes.index is the older overlap and retires once callers move over, because it takes a fingerprint and can therefore only ever mean a whole drive.