mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Give a reasonable value to blockcur in case of alert failure
This commit is contained in:
parent
81995ccc8d
commit
c2969f11ba
3 changed files with 3 additions and 0 deletions
|
|
@ -184,6 +184,7 @@ static int state_dry_process(struct snapraid_state* state, struct snapraid_parit
|
|||
countmax = blockmax - blockstart;
|
||||
countsize = 0;
|
||||
countpos = 0;
|
||||
blockcur = blockstart;
|
||||
|
||||
/* start all the worker threads */
|
||||
io_start(&io, blockstart, blockmax, 0);
|
||||
|
|
|
|||
|
|
@ -303,6 +303,7 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par
|
|||
|
||||
countsize = 0;
|
||||
countpos = 0;
|
||||
blockcur = blockstart;
|
||||
|
||||
msg_progress("Scrubbing...\n");
|
||||
|
||||
|
|
|
|||
|
|
@ -729,6 +729,7 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
|
|||
|
||||
countsize = 0;
|
||||
countpos = 0;
|
||||
blockcur = blockstart;
|
||||
|
||||
msg_progress("Syncing...\n");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue