Track deallocated files in the content file for parity recovery

Add a new 'dealloc' list per disk to record files that were removed
or modified during a scan. This list is saved in the content file
(new format version SNAPCNT4) so that past parity contributions of
those files can be imported from previous snapshots.
This commit is contained in:
Andrea Mazzoleni 2026-04-27 14:39:38 +02:00
parent cebc9b62f2
commit 1aae44a2a3
9 changed files with 417 additions and 10 deletions

View file

@ -231,6 +231,11 @@ void state_read(struct snapraid_state* state);
*/
void state_write(struct snapraid_state* state);
/**
* Signal that we reached a stable state with all parity computed.
*/
void state_commit(struct snapraid_state* state);
/**
* Diff all the disks.
*/