Refactors even more and add an additional selftest.

This commit is contained in:
Andrea Mazzoleni 2013-12-31 15:46:24 +01:00
parent 8a904cbe7a
commit cbddaa108d
13 changed files with 443 additions and 258 deletions

View file

@ -21,7 +21,7 @@
* It requires SSSE3 to get good performance with triple or more
* parities.
*
* This is the default mode used by SnapRAID.
* This is the default mode set after calling raid_init().
*/
#define RAID_MODE_CAUCHY 0
@ -49,6 +49,13 @@
*/
void raid_init(void);
/**
* Runs a basic functionality self test.
*
* It returns 0 on success.
*/
int raid_selftest(void);
/**
* Sets the mode to use. One of RAID_MODE_*.
*