mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
create minfreespace option. closes #71
This commit is contained in:
parent
ad7ce487bb
commit
ccb22c1fbe
26 changed files with 171 additions and 84 deletions
|
|
@ -84,6 +84,7 @@ static
|
|||
int
|
||||
_ioctl_dir_base(const fs::find::Func searchFunc,
|
||||
const vector<string> &srcmounts,
|
||||
const size_t minfreespace,
|
||||
const string &fusepath,
|
||||
const int cmd,
|
||||
void *arg,
|
||||
|
|
@ -94,7 +95,7 @@ _ioctl_dir_base(const fs::find::Func searchFunc,
|
|||
int rv;
|
||||
fs::Paths path;
|
||||
|
||||
rv = searchFunc(srcmounts,fusepath,path,1);
|
||||
rv = searchFunc(srcmounts,fusepath,minfreespace,path);
|
||||
if(rv == -1)
|
||||
return -errno;
|
||||
|
||||
|
|
@ -124,6 +125,7 @@ _ioctl_dir(const string &fusepath,
|
|||
|
||||
return _ioctl_dir_base(*config.getattr,
|
||||
config.srcmounts,
|
||||
config.minfreespace,
|
||||
fusepath,
|
||||
cmd,
|
||||
arg,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue