mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
separate policies into individual modules
This commit is contained in:
parent
3c8f12281f
commit
6ca43893ea
35 changed files with 886 additions and 523 deletions
24
src/link.cpp
24
src/link.cpp
|
|
@ -41,12 +41,12 @@ using mergerfs::Policy;
|
|||
|
||||
static
|
||||
int
|
||||
_single_link(const Policy::FuncPtr searchFunc,
|
||||
const vector<string> &srcmounts,
|
||||
const size_t minfreespace,
|
||||
const string &base,
|
||||
const string &oldpath,
|
||||
const string &newpath)
|
||||
_single_link(const Policy::Func::Ptr searchFunc,
|
||||
const vector<string> &srcmounts,
|
||||
const size_t minfreespace,
|
||||
const string &base,
|
||||
const string &oldpath,
|
||||
const string &newpath)
|
||||
{
|
||||
int rv;
|
||||
const string fulloldpath = fs::make_path(base,oldpath);
|
||||
|
|
@ -76,12 +76,12 @@ _single_link(const Policy::FuncPtr searchFunc,
|
|||
|
||||
static
|
||||
int
|
||||
_link(const Policy::FuncPtr searchFunc,
|
||||
const Policy::FuncPtr actionFunc,
|
||||
const vector<string> &srcmounts,
|
||||
const size_t minfreespace,
|
||||
const string &oldpath,
|
||||
const string &newpath)
|
||||
_link(const Policy::Func::Ptr searchFunc,
|
||||
const Policy::Func::Ptr actionFunc,
|
||||
const vector<string> &srcmounts,
|
||||
const size_t minfreespace,
|
||||
const string &oldpath,
|
||||
const string &newpath)
|
||||
{
|
||||
int rv;
|
||||
int error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue