Add raid_test_tail to test recovery of tail disks across all array sizes up to 251

This commit is contained in:
Andrea Mazzoleni 2026-08-21 11:42:14 +02:00
parent c410b11162
commit a745a05d4e
4 changed files with 296 additions and 19 deletions

View file

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