Add the new --test-io-cache option to control the cache size

This commit is contained in:
Andrea Mazzoleni 2016-01-10 19:39:43 +01:00
parent 79cc789e98
commit 7cb33cc046
9 changed files with 59 additions and 26 deletions

View file

@ -275,7 +275,7 @@ static int state_scrub_process(struct snapraid_state* state, struct snapraid_par
buffermax = diskmax + 2 * state->level;
/* initialize the io threads */
io_init(&io, state, buffermax, scrub_data_reader, handle, diskmax, scrub_parity_reader, 0, parity_handle, state->level);
io_init(&io, state, state->opt.io_cache, buffermax, scrub_data_reader, handle, diskmax, scrub_parity_reader, 0, parity_handle, state->level);
error = 0;
silent_error = 0;