create minfreespace option. closes #71

This commit is contained in:
Antonio SJ Musumeci 2015-06-16 22:12:55 -04:00
parent ad7ce487bb
commit ccb22c1fbe
26 changed files with 171 additions and 84 deletions

View file

@ -43,6 +43,7 @@ static
int
_removexattr(const fs::find::Func actionFunc,
const vector<string> &srcmounts,
const size_t minfreespace,
const string &fusepath,
const char *attrname)
{
@ -51,7 +52,7 @@ _removexattr(const fs::find::Func actionFunc,
int error;
fs::Paths paths;
rv = actionFunc(srcmounts,fusepath,paths,-1);
rv = actionFunc(srcmounts,fusepath,minfreespace,paths);
if(rv == -1)
return -errno;
@ -89,6 +90,7 @@ namespace mergerfs
return _removexattr(*config.removexattr,
config.srcmounts,
config.minfreespace,
fusepath,
attrname);
}