mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
parent
e0f0bb53f7
commit
12f393a55e
32 changed files with 569 additions and 122 deletions
|
|
@ -53,12 +53,13 @@ process_opt(config::Config &config,
|
|||
switch(argvalue.size())
|
||||
{
|
||||
case 2:
|
||||
if(argvalue[0] == "create")
|
||||
config.create = Policy::find(argvalue[1]);
|
||||
else if(argvalue[0] == "search")
|
||||
config.search = Policy::find(argvalue[1]);
|
||||
else
|
||||
rv = 1;
|
||||
{
|
||||
FuseFunc fusefunc = FuseFunc::find(argvalue[0]);
|
||||
if(fusefunc != FuseFunc::invalid)
|
||||
config.policies[(FuseFunc::Enum::Type)*fusefunc] = Policy::find(argvalue[1]);
|
||||
else
|
||||
rv = 1;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue