mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-28 19:06:42 -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
|
|
@ -889,6 +889,8 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
unrecoverable_error = 0;
|
||||
recovered_error = 0;
|
||||
|
||||
msg_progress("Selecting...\n");
|
||||
|
||||
/* first count the number of blocks to process */
|
||||
countmax = 0;
|
||||
for (i = blockstart; i < blockmax; ++i) {
|
||||
|
|
@ -897,6 +899,13 @@ static int state_check_process(struct snapraid_state* state, int fix, struct sna
|
|||
++countmax;
|
||||
}
|
||||
|
||||
if (fix)
|
||||
msg_progress("Fixing...\n");
|
||||
else if (!state->opt.auditonly)
|
||||
msg_progress("Checking...\n");
|
||||
else
|
||||
msg_progress("Hashing...\n");
|
||||
|
||||
/* check all the blocks in files */
|
||||
countsize = 0;
|
||||
countpos = 0;
|
||||
|
|
@ -2019,13 +2028,6 @@ int state_check(struct snapraid_state* state, int fix, block_off_t blockstart, b
|
|||
parity_ptr[l] = 0;
|
||||
}
|
||||
|
||||
if (fix)
|
||||
msg_progress("Fixing...\n");
|
||||
else if (!state->opt.auditonly)
|
||||
msg_progress("Checking...\n");
|
||||
else
|
||||
msg_progress("Hashing...\n");
|
||||
|
||||
error = 0;
|
||||
|
||||
/* skip degenerated cases of empty parity, or skipping all */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue