mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Revert removal of readdir init setup, simplify cfg usage (#1520)
This commit is contained in:
parent
99c28ad3bc
commit
f64ff9ca1e
42 changed files with 388 additions and 426 deletions
|
|
@ -87,6 +87,19 @@ _read_cfg(const std::string_view str_,
|
|||
max_queue_depth_ = max_queue_depth;
|
||||
}
|
||||
|
||||
bool
|
||||
FUSE::ReadDirFactory::valid(const std::string_view str_)
|
||||
{
|
||||
int concurrency;
|
||||
int max_queue_depth;
|
||||
std::string type;
|
||||
|
||||
::_read_cfg(str_,type,concurrency,max_queue_depth);
|
||||
|
||||
return ((type == "seq") ||
|
||||
(type == "cosr") ||
|
||||
(type == "cor"));
|
||||
}
|
||||
|
||||
std::shared_ptr<FUSE::ReadDirBase>
|
||||
FUSE::ReadDirFactory::make(const std::string_view str_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue