mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 13:50:09 -05:00
Implement crash-safe --force-full sync with persistent BLOCK_STATE_REBUILD
This commit is contained in:
parent
190062fcac
commit
f4a5b58c52
11 changed files with 281 additions and 43 deletions
|
|
@ -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 :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue