mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 23:16:28 -05: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
|
|
@ -732,6 +732,8 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
|
|||
silent_error = 0;
|
||||
io_error = 0;
|
||||
|
||||
msg_progress("Selecting...\n");
|
||||
|
||||
/* first count the number of blocks to process */
|
||||
countmax = 0;
|
||||
plan.handle_max = diskmax;
|
||||
|
|
@ -756,6 +758,8 @@ static int state_sync_process(struct snapraid_state* state, struct snapraid_pari
|
|||
countsize = 0;
|
||||
countpos = 0;
|
||||
|
||||
msg_progress("Syncing...\n");
|
||||
|
||||
/* start all the worker threads */
|
||||
io_start(&io, blockstart, blockmax, &block_is_enabled, &plan);
|
||||
|
||||
|
|
@ -1575,8 +1579,6 @@ int state_sync(struct snapraid_state* state, block_off_t blockstart, block_off_t
|
|||
log_fatal("WARNING! Skipped state write for --test-skip-content-write option.\n");
|
||||
}
|
||||
|
||||
msg_progress("Syncing...\n");
|
||||
|
||||
/* skip degenerated cases of empty parity, or skipping all */
|
||||
if (blockstart < blockmax) {
|
||||
ret = state_sync_process(state, parity_handle, blockstart, blockmax);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue