Browse Source

Merge pull request #639 from trapexit/args

accept old arguments for backwards compatibility
pull/643/head 2.28.1
trapexit 6 years ago
committed by GitHub
parent
commit
72ac1fc0d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/option_parser.cpp

6
src/option_parser.cpp

@ -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…
Cancel
Save