mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
add category to policies so as to distinguish between creates and searches
This commit is contained in:
parent
a5bf48c8ae
commit
51b6d3f647
32 changed files with 292 additions and 224 deletions
|
|
@ -40,10 +40,10 @@ using mergerfs::Policy;
|
|||
|
||||
static
|
||||
int
|
||||
_rmdir(const Policy::Func::Ptr actionFunc,
|
||||
const vector<string> &srcmounts,
|
||||
const size_t minfreespace,
|
||||
const string &fusepath)
|
||||
_rmdir(Policy::Func::Action actionFunc,
|
||||
const vector<string> &srcmounts,
|
||||
const size_t minfreespace,
|
||||
const string &fusepath)
|
||||
{
|
||||
int rv;
|
||||
int error;
|
||||
|
|
@ -77,7 +77,7 @@ namespace mergerfs
|
|||
const ugid::SetResetGuard ugid(fc->uid,fc->gid);
|
||||
const rwlock::ReadGuard readguard(&config.srcmountslock);
|
||||
|
||||
return _rmdir(*config.rmdir,
|
||||
return _rmdir(config.rmdir,
|
||||
config.srcmounts,
|
||||
config.minfreespace,
|
||||
fusepath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue