diff --git a/cmdline/sync.c b/cmdline/sync.c index 3e82e847..e483a0a6 100644 --- a/cmdline/sync.c +++ b/cmdline/sync.c @@ -82,7 +82,9 @@ static int state_hash_process(struct snapraid_state* state, block_off_t blocksta countsize = 0; countpos = 0; - if (state_progress_begin(state, blockstart, blockmax, countmax)) + if (!state_progress_begin(state, blockstart, blockmax, countmax)) + goto end; + for(j=0;j