mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
branches: add per branch minfreespace w/ original value as default
example: /mnt/disk0=RW,1G:/mnt/disk1=RW,2G
This commit is contained in:
parent
98c49b8001
commit
fc3453932a
68 changed files with 3005 additions and 813 deletions
|
|
@ -94,7 +94,6 @@ int
|
|||
PolicyCache::operator()(Policy::Func::Search &func_,
|
||||
const Branches &branches_,
|
||||
const char *fusepath_,
|
||||
const uint64_t minfreespace_,
|
||||
std::string *branch_)
|
||||
{
|
||||
int rv;
|
||||
|
|
@ -103,7 +102,7 @@ PolicyCache::operator()(Policy::Func::Search &func_,
|
|||
string branch;
|
||||
|
||||
if(timeout == 0)
|
||||
return func_(branches_,fusepath_,minfreespace_,branch_);
|
||||
return func_(branches_,fusepath_,branch_);
|
||||
|
||||
now = l::get_time();
|
||||
|
||||
|
|
@ -113,7 +112,7 @@ PolicyCache::operator()(Policy::Func::Search &func_,
|
|||
if((now - v->time) >= timeout)
|
||||
{
|
||||
pthread_mutex_unlock(&_lock);
|
||||
rv = func_(branches_,fusepath_,minfreespace_,&branch);
|
||||
rv = func_(branches_,fusepath_,&branch);
|
||||
if(rv == -1)
|
||||
return -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue