mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 11:26:48 -05:00
Add raid_test_tail to test recovery of tail disks across all array sizes up to 251
This commit is contained in:
parent
c410b11162
commit
a745a05d4e
4 changed files with 296 additions and 19 deletions
10
raid/test.h
10
raid/test.h
|
|
@ -60,6 +60,16 @@ int raid_test_poly(unsigned mode);
|
|||
*/
|
||||
int raid_test_rec(unsigned mode, int nd, size_t size);
|
||||
|
||||
/**
|
||||
* Tests recovering functions on the tail data disks.
|
||||
*
|
||||
* All the recovering functions are tested by recovering the last 1, 2, ..., np
|
||||
* data disks for each disk count from 1 to nd.
|
||||
*
|
||||
* Returns 0 on success.
|
||||
*/
|
||||
int raid_test_tail(unsigned mode, int nd, size_t size);
|
||||
|
||||
/**
|
||||
* Tests parity generation functions.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue