add nullrw feature to facilitate benchmarking

This commit is contained in:
Antonio SJ Musumeci 2017-05-26 16:51:30 -04:00
parent 63f84b255f
commit 87c2f2f9dc
12 changed files with 164 additions and 12 deletions

View file

@ -190,6 +190,8 @@ parse_and_process_kv_arg(Config &config,
rv = parse_and_process(value,config.symlinkify);
else if(key == "symlinkify_timeout")
rv = parse_and_process(value,config.symlinkify_timeout);
else if(key == "nullrw")
rv = parse_and_process(value,config.nullrw);
}
if(rv == -1)
@ -291,6 +293,7 @@ usage(void)
" -o symlinkify_timeout=<int>\n"
" timeout in seconds before will turn to symlinks.\n"
" default=3600\n"
" -o nullrw=<bool> Disables reads and writes. For benchmarking.\n"
<< std::endl;
}