mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-06-07 19:34:36 +08:00
create minfreespace option. closes #71
This commit is contained in:
@ -43,6 +43,7 @@ static
|
||||
int
|
||||
_truncate(const fs::find::Func actionFunc,
|
||||
const vector<string> &srcmounts,
|
||||
const size_t minfreespace,
|
||||
const string &fusepath,
|
||||
const off_t size)
|
||||
{
|
||||
@ -50,7 +51,7 @@ _truncate(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;
|
||||
|
||||
@ -81,6 +82,7 @@ namespace mergerfs
|
||||
|
||||
return _truncate(*config.truncate,
|
||||
config.srcmounts,
|
||||
config.minfreespace,
|
||||
fusepath,
|
||||
size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user