Add raid selftest for raid_rec_dataonly()

This commit is contained in:
Andrea Mazzoleni 2015-03-10 22:09:48 +01:00
parent 348ca97493
commit 1d9b0abc3f
2 changed files with 89 additions and 12 deletions

View file

@ -139,9 +139,9 @@ void raid_gen(int nd, int np, size_t size, void **v);
void raid_rec(int nr, int *ir, int nd, int np, size_t size, void **v);
/**
* Recovers failures in data blocks using the specified parities.
* Recovers failures in data blocks only.
*
* The data blocks marked as bad in the @id vector are recovered.
* This function recovers all the data blocks marked as bad in the @id vector.
* The parity blocks are not modified.
*
* @nr Number of failed data blocks to recover.