Uses more generic recovering functions with vectors instead of variables.

This commit is contained in:
Andrea Mazzoleni 2013-10-26 16:35:35 +02:00
parent 7057d97999
commit 162650303c
2 changed files with 619 additions and 1004 deletions

1621
raid.c

File diff suppressed because it is too large Load diff

2
raid.h
View file

@ -53,7 +53,7 @@ void raid_gen(unsigned level, unsigned char** vbuf, unsigned data, unsigned size
* \param zero Buffer filled with 0 of ::size bytes. This buffer is not modified.
* \param size Size of the blocks pointed by vbuf.
*/
void raid_recov(unsigned level, int* d, int* p, unsigned char** vbuf, unsigned data, unsigned char* zero, unsigned size);
void raid_recov(unsigned level, const int* d, const int* p, unsigned char** vbuf, unsigned data, unsigned char* zero, unsigned size);
/**
* Gets the name of the selected function to compute parity.