diff --git a/HISTORY b/HISTORY index 2e7d906b..681028a8 100644 --- a/HISTORY +++ b/HISTORY @@ -21,6 +21,7 @@ SnapRAID HISTORY --test-io-advise-discard discard cache after every operation (Linux) --test-io-advise-discard-window discard cache every 8 MB (Linux) --test-io-advise-direct use direct/unbuffered mode (Linux/Windows) + The default mode is 'flush' in Linux and 'sequential' in Windows. * Fixed running in Windows platforms that miss the RtlGenRandom function. * Added a new 'hashsize' configuration option. It could be useful in diff --git a/cmdline/state.c b/cmdline/state.c index 102cc31d..b091cffb 100644 --- a/cmdline/state.c +++ b/cmdline/state.c @@ -537,7 +537,7 @@ void state_config(struct snapraid_state* state, const char* path, const char* co state->file_mode = state->opt.file_mode; } else { /* default mode, if nothing is specified */ - state->file_mode = ADVISE_SEQUENTIAL; + state->file_mode = ADVISE_FLUSH; } /* store current command */