Extend the raid regression test with some more case

This commit is contained in:
Andrea Mazzoleni 2015-03-30 18:57:33 +02:00
parent 36061561cc
commit 0ac0a8eceb
2 changed files with 16 additions and 8 deletions

View file

@ -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 */