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