mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Remove impossible condition about io_error in hashing
This commit is contained in:
parent
21ce043725
commit
1bbca4ca40
1 changed files with 5 additions and 5 deletions
|
|
@ -309,10 +309,13 @@ static int state_hash_process(struct snapraid_state* state, block_off_t blocksta
|
|||
end:
|
||||
state_progress_end(state, countpos, countmax, countsize);
|
||||
|
||||
if (error || io_error) {
|
||||
/* note that at this point no io_error is possible */
|
||||
/* becasue at the first one we bail out */
|
||||
assert(io_error == 0);
|
||||
|
||||
if (error) {
|
||||
msg_status("\n");
|
||||
msg_status("%8u file errors\n", error);
|
||||
msg_status("%8u io errors\n", io_error);
|
||||
} else {
|
||||
/* print the result only if processed something */
|
||||
if (countpos != 0)
|
||||
|
|
@ -321,11 +324,8 @@ end:
|
|||
|
||||
if (error)
|
||||
msg_error("WARNING! Unexpected file errors!\n");
|
||||
if (io_error)
|
||||
msg_error("DANGER! Unexpected input/output errors! The failing blocks are now marked as bad!\n");
|
||||
|
||||
msg_tag("hash_summary:error_file:%u\n", error);
|
||||
msg_tag("hash_summary:error_io:%u\n", io_error);
|
||||
|
||||
/* proceed without bailing out */
|
||||
goto finish;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue