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
|
|
@ -134,19 +134,19 @@ namespace epff
|
|||
}
|
||||
|
||||
int
|
||||
Policy::Func::epff(const Category::Enum::Type type_,
|
||||
const Branches &branches_,
|
||||
const char *fusepath_,
|
||||
const uint64_t minfreespace_,
|
||||
vector<string> *paths_)
|
||||
Policy::Func::epff(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 epff::create(branches_,fusepath_,minfreespace_,paths_);
|
||||
case Category::Enum::action:
|
||||
case Category::ACTION:
|
||||
return epff::action(branches_,fusepath_,paths_);
|
||||
case Category::Enum::search:
|
||||
case Category::SEARCH:
|
||||
default:
|
||||
return epff::search(branches_,fusepath_,paths_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue