More coverage test.

This commit is contained in:
Andrea Mazzoleni 2014-03-20 22:10:19 +01:00
parent cabe782a6f
commit ba0c979c11
9 changed files with 88 additions and 17 deletions

View file

@ -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;