mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-21 15:36:33 -05:00
Refactor the parity size detection before sync.
Now we resize the parity only after checking the size of all the parity file.
This commit is contained in:
parent
6844fb7527
commit
ad57aafd8f
11 changed files with 112 additions and 62 deletions
|
|
@ -80,7 +80,7 @@ int state_status(struct snapraid_state* state)
|
|||
/* keep track if at least a free info is available */
|
||||
free_not_zero = 0;
|
||||
|
||||
blockmax = parity_size(state);
|
||||
blockmax = parity_allocated_size(state);
|
||||
|
||||
fprintf(stdlog, "summary:block_size:%u\n", state->block_size);
|
||||
fprintf(stdlog, "summary:parity_block_count:%u\n", blockmax);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue