Give a reasonable value to blockcur in case of alert failure

This commit is contained in:
Andrea Mazzoleni 2026-05-21 12:49:47 +02:00
parent 81995ccc8d
commit c2969f11ba
3 changed files with 3 additions and 0 deletions

View file

@ -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);

View file

@ -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");

View file

@ -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");