mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-03-09 13:35:15 +08:00
Merge pull request #639 from trapexit/args
accept old arguments for backwards compatibility
This commit is contained in:
commit
72ac1fc0d1
@ -304,6 +304,10 @@ parse_and_process_arg(Config &config,
|
|||||||
return (config.async_read=true,0);
|
return (config.async_read=true,0);
|
||||||
else if(arg == "sync_read")
|
else if(arg == "sync_read")
|
||||||
return (config.async_read=false,0);
|
return (config.async_read=false,0);
|
||||||
|
else if(arg == "atomic_o_trunc")
|
||||||
|
return 0;
|
||||||
|
else if(arg == "big_writes")
|
||||||
|
return 0;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -367,6 +371,8 @@ parse_and_process_kv_arg(Config &config,
|
|||||||
rv = parse_and_process(value,config.auto_cache);
|
rv = parse_and_process(value,config.auto_cache);
|
||||||
else if(key == "async_read")
|
else if(key == "async_read")
|
||||||
rv = parse_and_process(value,config.async_read);
|
rv = parse_and_process(value,config.async_read);
|
||||||
|
else if(key == "max_write")
|
||||||
|
rv = 0;
|
||||||
else if(key == "fuse_msg_size")
|
else if(key == "fuse_msg_size")
|
||||||
rv = parse_and_process(value,config.fuse_msg_size,
|
rv = parse_and_process(value,config.fuse_msg_size,
|
||||||
1,
|
1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user