mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 20:06:56 -05:00
More coverage test.
This commit is contained in:
parent
cabe782a6f
commit
ba0c979c11
9 changed files with 88 additions and 17 deletions
4
check.c
4
check.c
|
|
@ -164,11 +164,13 @@ static int repair_step(struct snapraid_state* state, int rehash, unsigned pos, u
|
|||
int id[LEV_MAX];
|
||||
int ip[LEV_MAX];
|
||||
|
||||
/* no fix required */
|
||||
/* no fix required, already checked at higher level, but just to be sure */
|
||||
if (failed_count == 0) {
|
||||
/* LCOV_EXCL_START */
|
||||
/* recompute only the parity */
|
||||
raid_gen(diskmax, state->level, state->block_size, buffer);
|
||||
return 0;
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
n = state->level;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue