mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 09:26:27 -05:00
Adds recovering at RAID6 support.
Adds selftesting of RAID5 and RAID5.
This commit is contained in:
parent
08831c6641
commit
f855424082
11 changed files with 546 additions and 200 deletions
6
sync.c
6
sync.c
|
|
@ -189,11 +189,7 @@ static int state_sync_process(struct snapraid_state* state, int parity_f, int qa
|
|||
}
|
||||
|
||||
/* compute the parity */
|
||||
if (state->level == 1) {
|
||||
raid5_gen(buffer, diskmax + state->level, state->block_size);
|
||||
} else {
|
||||
raid6_gen(buffer, diskmax + state->level, state->block_size);
|
||||
}
|
||||
raid_gen(state->level, buffer, diskmax, state->block_size);
|
||||
|
||||
/* write the parity */
|
||||
ret = parity_write(state->parity, parity_f, i, buffer[diskmax], state->block_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue