mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
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:
parent
21673eb805
commit
69d467e9ef
9 changed files with 417 additions and 10 deletions
|
|
@ -1428,6 +1428,9 @@ end:
|
|||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
/* now the parity is fully written, no need to keep deallocated files */
|
||||
state_commit(state);
|
||||
|
||||
/* save the new state if required */
|
||||
if (!state->opt.kill_after_sync) {
|
||||
if ((state->need_write || state->opt.force_content_write))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue