mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 03:16:59 -05:00
Extend the raid regression test with some more case
This commit is contained in:
parent
36061561cc
commit
0ac0a8eceb
2 changed files with 16 additions and 8 deletions
|
|
@ -165,7 +165,7 @@ int raid_scan(int *ir, int nd, int np, size_t size, void **v)
|
|||
int r;
|
||||
|
||||
/* check the special case of no failure */
|
||||
if (raid_check(0, 0, nd, np, size, v) == 0)
|
||||
if (np != 0 && raid_check(0, 0, nd, np, size, v) == 0)
|
||||
return 0;
|
||||
|
||||
/* for each number of possible failures */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue