mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-21 07:26:28 -05:00
config_passthrough.cpp
This commit is contained in:
parent
ceee1f1cbb
commit
1907168452
1 changed files with 1 additions and 10 deletions
|
|
@ -31,16 +31,7 @@ template<>
|
|||
int
|
||||
Passthrough::from_string(const std::string &s_)
|
||||
{
|
||||
if(s_ == "off")
|
||||
_data = Passthrough::ENUM::OFF;
|
||||
ef(s_ == "ro")
|
||||
_data = Passthrough::ENUM::RO;
|
||||
ef(s_ == "wo")
|
||||
_data = Passthrough::ENUM::WO;
|
||||
ef(s_ == "rw")
|
||||
_data = Passthrough::ENUM::RW;
|
||||
else
|
||||
return -EINVAL;
|
||||
_data = PassthroughEnum::_from_string_nothrow(s_);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue