mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 23:16:28 -05:00
Add support for selectable streaming vs cached parity generation
This commit is contained in:
parent
44575b21b1
commit
0ce89aa35d
21 changed files with 1510 additions and 1137 deletions
|
|
@ -222,9 +222,12 @@ void raid_zero(void *zero);
|
|||
* data, following with the parity blocks.
|
||||
* Data entries are used as inputs and parity entries as outputs.
|
||||
* Entries may point to the same block buffer.
|
||||
* Each block has @size bytes and must be aligned to a 64-byte boundary.
|
||||
* @streaming Store policy hint: nonzero for streaming / non-temporal stores
|
||||
* (bypassing cache) where supported, or 0 for normal cached / temporal stores.
|
||||
* Both modes produce bit-identical parity data. Backends without streaming
|
||||
* stores ignore this hint.
|
||||
*/
|
||||
void raid_gen(int nd, int np, size_t size, void **v);
|
||||
void raid_gen(int nd, int np, size_t size, void **v, int streaming);
|
||||
|
||||
/**
|
||||
* Recovers failures in data and parity blocks.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue