mirror of https://github.com/trapexit/mergerfs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
486 B
26 lines
486 B
#include "func_mknod_factory.hpp"
|
|
|
|
#include "func_mknod_ff.hpp"
|
|
#include "func_mknod_mfs.hpp"
|
|
|
|
bool
|
|
Func2::MknodFactory::valid(const std::string str_)
|
|
{
|
|
if(str_ == "ff")
|
|
return true;
|
|
if(str_ == "mfs")
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
std::shared_ptr<Func2::MknodBase>
|
|
Func2::MknodFactory::make(const std::string_view str_)
|
|
{
|
|
if(str_ == "ff")
|
|
return std::make_shared<Func2::MknodFF>();
|
|
if(str_ == "mfs")
|
|
return std::make_shared<Func2::MknodMFS>();
|
|
|
|
return {};
|
|
}
|