mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-04-21 12:31:43 +00:00
add category to policies so as to distinguish between creates and searches
This commit is contained in:
+5
-5
@@ -41,10 +41,10 @@ using mergerfs::Policy;
|
||||
|
||||
static
|
||||
int
|
||||
_unlink(const Policy::Func::Ptr actionFunc,
|
||||
const vector<string> &srcmounts,
|
||||
const size_t minfreespace,
|
||||
const string &fusepath)
|
||||
_unlink(Policy::Func::Action actionFunc,
|
||||
const vector<string> &srcmounts,
|
||||
const size_t minfreespace,
|
||||
const string &fusepath)
|
||||
{
|
||||
int rv;
|
||||
int error;
|
||||
@@ -78,7 +78,7 @@ namespace mergerfs
|
||||
const ugid::SetResetGuard ugid(fc->uid,fc->gid);
|
||||
const rwlock::ReadGuard readlock(&config.srcmountslock);
|
||||
|
||||
return _unlink(*config.unlink,
|
||||
return _unlink(config.unlink,
|
||||
config.srcmounts,
|
||||
config.minfreespace,
|
||||
fusepath);
|
||||
|
||||
Reference in New Issue
Block a user