mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Document streaming parameter as a strict 0 or 1 value
This commit is contained in:
parent
de00981504
commit
bfe5ee7643
5 changed files with 12 additions and 10 deletions
|
|
@ -88,7 +88,7 @@ void raid_gen(int nd, int np, size_t size, void **v, int streaming)
|
|||
/* enforce valid vector */
|
||||
BUG_ON(v == 0);
|
||||
|
||||
/* enforce valid streaming flag */
|
||||
/* enforce the documented 0/1 store policy */
|
||||
BUG_ON(streaming != 0 && streaming != 1);
|
||||
|
||||
BUG_ON(raid_gen_ptr[np - 1] == 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue