From 849203a8baa4e79c39e664ba565819a885ff8713 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 17 Nov 2015 15:42:05 +0100 Subject: Add support for option 'max_submit_size' to compileconfig.py. --- test/catlfish-test-local-1.cfg | 1 + tools/compileconfig.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/test/catlfish-test-local-1.cfg b/test/catlfish-test-local-1.cfg index cbe04d8..fbd7e4b 100644 --- a/test/catlfish-test-local-1.cfg +++ b/test/catlfish-test-local-1.cfg @@ -29,3 +29,4 @@ ratelimits: #options: # - sctcaching +# - max_submit_size: 1048576 diff --git a/tools/compileconfig.py b/tools/compileconfig.py index df43365..e747fad 100755 --- a/tools/compileconfig.py +++ b/tools/compileconfig.py @@ -214,6 +214,10 @@ def gen_config(nodename, config, localconfig): if "frontendnodes" in nodetype: if "sctcaching" in options: catlfishconfig.append((Symbol("sctcache_root_path"), paths["db"] + "sctcache/")) + opt = filter(lambda e: "max_submit_size" in e, options) + if len(opt) > 0: + max_submit_size = opt[0]["max_submit_size"] # Ignore all but first. + catlfishconfig.append((Symbol("max_submit_size"), max_submit_size)) if "ratelimits" in localconfig: ratelimits = map(parse_ratelimit, localconfig["ratelimits"].items()) catlfishconfig.append((Symbol("ratelimits"), ratelimits)) -- cgit v1.1