mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Fix parity writer error propagation in io_flush and abort sync on parity write failures
This commit is contained in:
parent
fa0a77f84c
commit
ef6fa54ee2
4 changed files with 69 additions and 27 deletions
|
|
@ -629,8 +629,7 @@ static void sync_parity_writer(struct snapraid_worker* worker, struct snapraid_t
|
|||
|
||||
if (is_hw(errno)) {
|
||||
log_fatal_errno(errno, lev_config_name(level));
|
||||
/* continue until the error limit is reached */
|
||||
task->state = TASK_STATE_IOERROR_CONTINUE;
|
||||
task->state = TASK_STATE_IOERROR;
|
||||
} else {
|
||||
log_fatal_errno(errno, lev_config_name(level));
|
||||
log_fatal(errno, "Stopping at block %" PRIu64 "\n", blockcur);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue