mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-03 05:10:14 -05:00
add file caching across opens and runtime control
This commit is contained in:
parent
02b657edff
commit
529a953e30
13 changed files with 601 additions and 336 deletions
|
|
@ -225,6 +225,14 @@ namespace l
|
|||
}
|
||||
}
|
||||
|
||||
static
|
||||
void
|
||||
getxattr_controlfile(const Config::CacheFiles &cache_files_,
|
||||
string &attrvalue_)
|
||||
{
|
||||
attrvalue_ = (string)cache_files_;
|
||||
}
|
||||
|
||||
static
|
||||
void
|
||||
getxattr_controlfile_policies(const Config &config,
|
||||
|
|
@ -371,6 +379,8 @@ namespace l
|
|||
l::getxattr_controlfile_bool(config.cache_symlinks,attrvalue);
|
||||
else if((attr[2] == "cache") && (attr[3] == "readdir"))
|
||||
l::getxattr_controlfile_bool(config.cache_readdir,attrvalue);
|
||||
else if((attr[2] == "cache") && (attr[3] == "files"))
|
||||
l::getxattr_controlfile(config.cache_files,attrvalue);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue