Implement crash-safe --force-full sync with persistent BLOCK_STATE_REBUILD

This commit is contained in:
Andrea Mazzoleni 2026-08-28 12:11:05 +02:00
parent 190062fcac
commit f4a5b58c52
11 changed files with 281 additions and 43 deletions

View file

@ -909,6 +909,7 @@ void dealloc_import(struct snapraid_dealloc* dealloc, struct snapraid_file* file
switch (state) {
case BLOCK_STATE_BLK :
case BLOCK_STATE_REP :
case BLOCK_STATE_REBUILD :
memcpy(hash, block->hash, BLOCK_HASH_SIZE);
break;
case BLOCK_STATE_CHG :