mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Print a new Selecting... stage to get an idea of the time spent on it
This commit is contained in:
parent
4340d436a9
commit
cb8b3dc804
4 changed files with 18 additions and 12 deletions
|
|
@ -289,6 +289,8 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par
|
|||
silent_error = 0;
|
||||
io_error = 0;
|
||||
|
||||
msg_progress("Selecting...\n");
|
||||
|
||||
/* first count the number of blocks to process */
|
||||
countmax = 0;
|
||||
plan->countlast = 0;
|
||||
|
|
@ -312,6 +314,8 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par
|
|||
countpos = 0;
|
||||
plan->countlast = 0;
|
||||
|
||||
msg_progress("Scrubbing...\n");
|
||||
|
||||
/* start all the worker threads */
|
||||
io_start(&io, blockstart, blockmax, &block_is_enabled, plan);
|
||||
|
||||
|
|
@ -874,8 +878,6 @@ int state_scrub(struct snapraid_state* state, int plan, int olderthan)
|
|||
}
|
||||
}
|
||||
|
||||
msg_progress("Scrubbing...\n");
|
||||
|
||||
error = 0;
|
||||
|
||||
ret = state_scrub_process(state, parity_handle, 0, blockmax, &ps, now);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue