mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Add the new --test-io-cache option to control the cache size
This commit is contained in:
parent
79cc789e98
commit
7cb33cc046
9 changed files with 59 additions and 26 deletions
|
|
@ -186,7 +186,7 @@ static int state_dry_process(struct snapraid_state* state, struct snapraid_parit
|
|||
buffermax = diskmax + 2 * state->level;
|
||||
|
||||
/* initialize the io threads */
|
||||
io_init(&io, state, buffermax, dry_data_reader, handle, diskmax, dry_parity_reader, 0, parity_handle, state->level);
|
||||
io_init(&io, state, state->opt.io_cache, buffermax, dry_data_reader, handle, diskmax, dry_parity_reader, 0, parity_handle, state->level);
|
||||
|
||||
error = 0;
|
||||
io_error = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue