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
|
|
@ -64,3 +64,16 @@ State::set(const std::string &key_,
|
|||
|
||||
return i->second.set(val_);
|
||||
}
|
||||
|
||||
int
|
||||
State::valid(const std::string &key_,
|
||||
const std::string_view val_)
|
||||
{
|
||||
std::map<std::string,State::GetSet>::iterator i;
|
||||
|
||||
i = _getset.find(key_);
|
||||
if((i == _getset.end()) || (!i->second.valid))
|
||||
return -ENOATTR;
|
||||
|
||||
return i->second.valid(val_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue