mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
change category to enum class
This commit is contained in:
parent
4c711159df
commit
6cc6524997
22 changed files with 144 additions and 263 deletions
|
|
@ -170,19 +170,19 @@ namespace eplus
|
|||
}
|
||||
|
||||
int
|
||||
Policy::Func::eplus(const Category::Enum::Type type,
|
||||
const Branches &branches_,
|
||||
const char *fusepath,
|
||||
const uint64_t minfreespace,
|
||||
vector<string> *paths)
|
||||
Policy::Func::eplus(const Category type,
|
||||
const Branches &branches_,
|
||||
const char *fusepath,
|
||||
const uint64_t minfreespace,
|
||||
vector<string> *paths)
|
||||
{
|
||||
switch(type)
|
||||
{
|
||||
case Category::Enum::create:
|
||||
case Category::CREATE:
|
||||
return eplus::create(branches_,fusepath,minfreespace,paths);
|
||||
case Category::Enum::action:
|
||||
case Category::ACTION:
|
||||
return eplus::action(branches_,fusepath,paths);
|
||||
case Category::Enum::search:
|
||||
case Category::SEARCH:
|
||||
default:
|
||||
return eplus::search(branches_,fusepath,paths);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue