mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
add symlink caching
This commit is contained in:
parent
9e3331dab4
commit
1baa706d37
11 changed files with 94 additions and 11 deletions
|
|
@ -239,6 +239,8 @@ parse_and_process_cache(Config &config_,
|
|||
return (set_kv_option(outargs,"negative_timeout",value_),0);
|
||||
else if(func_ == "attr")
|
||||
return (set_kv_option(outargs,"attr_timeout",value_),0);
|
||||
else if(func_ == "symlinks")
|
||||
return parse_and_process(value_,config_.cache_symlinks);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
@ -383,6 +385,9 @@ usage(void)
|
|||
" default = 0 (disabled)\n"
|
||||
" -o cache.statfs=<int> 'statfs' cache timeout in seconds. Used by\n"
|
||||
" policies. default = 0 (disabled)\n"
|
||||
" -o cache.symlinks=<bool>\n"
|
||||
" enable kernel caching of symlinks (if supported)\n"
|
||||
" default = false\n"
|
||||
" -o cache.attr=<int> file attribute cache timeout in seconds.\n"
|
||||
" default = 1\n"
|
||||
" -o cache.entry=<int> file name lookup cache timeout in seconds.\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue