mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
make dropcacheonclose runtime configurable
This commit is contained in:
parent
23dbe48324
commit
8ba3a08f40
3 changed files with 34 additions and 28 deletions
|
|
@ -114,10 +114,10 @@ _getxattr_controlfile_minfreespace(const Config &config,
|
|||
|
||||
static
|
||||
void
|
||||
_getxattr_controlfile_moveonenospc(const Config &config,
|
||||
string &attrvalue)
|
||||
_getxattr_controlfile_bool(bool boolvalue,
|
||||
string &attrvalue)
|
||||
{
|
||||
attrvalue = (config.moveonenospc ? "true" : "false");
|
||||
attrvalue = (boolvalue ? "true" : "false");
|
||||
}
|
||||
|
||||
static
|
||||
|
|
@ -175,7 +175,9 @@ _getxattr_controlfile(const Config &config,
|
|||
else if(attr[2] == "minfreespace")
|
||||
_getxattr_controlfile_minfreespace(config,attrvalue);
|
||||
else if(attr[2] == "moveonenospc")
|
||||
_getxattr_controlfile_moveonenospc(config,attrvalue);
|
||||
_getxattr_controlfile_bool(config.moveonenospc,attrvalue);
|
||||
else if(attr[2] == "dropcacheonclose")
|
||||
_getxattr_controlfile_bool(config.dropcacheonclose,attrvalue);
|
||||
else if(attr[2] == "policies")
|
||||
_getxattr_controlfile_policies(config,attrvalue);
|
||||
else if(attr[2] == "version")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue