Change the default scrub percentage to 15%

This is done to take into account that now
synced blocks are scrubbed with priority.
This commit is contained in:
Andrea Mazzoleni 2015-11-08 16:52:29 +01:00
parent 9be125dfb9
commit 7f17d667e6
5 changed files with 32 additions and 35 deletions

View file

@ -605,8 +605,8 @@ int state_scrub(struct snapraid_state* state, int percentage, int olderthan)
if (percentage >= 0) {
countlimit = md(blockmax, percentage, 100);
} else {
/* by default scrub 1/12 of the array */
countlimit = md(blockmax, 1, 12);
/* by default scrub 15% of the array (100*3/20=15) */
countlimit = md(blockmax, 3, 20);
}
if (olderthan >= 0) {