mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
Supports dry without a parity file.
This commit is contained in:
parent
cb4a72afca
commit
48473537bf
1 changed files with 6 additions and 4 deletions
10
dry.c
10
dry.c
|
|
@ -92,10 +92,12 @@ static int state_dry_process(struct snapraid_state* state, int parity_f, int qar
|
|||
}
|
||||
|
||||
/* read the parity */
|
||||
ret = parity_read(state->parity, parity_f, i, buffer, state->block_size);
|
||||
if (ret == -1) {
|
||||
fprintf(stderr, "%u: Parity read error\n", i);
|
||||
++error;
|
||||
if (parity_f != -1) {
|
||||
ret = parity_read(state->parity, parity_f, i, buffer, state->block_size);
|
||||
if (ret == -1) {
|
||||
fprintf(stderr, "%u: Parity read error\n", i);
|
||||
++error;
|
||||
}
|
||||
}
|
||||
|
||||
/* read the qarity */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue