diff options
| author | N Balachandran <nbalacha@redhat.com> | 2018-01-10 09:09:24 +0530 | 
|---|---|---|
| committer | N Balachandran <nbalacha@redhat.com> | 2018-01-12 15:34:32 +0000 | 
| commit | e9358bc4d275602529a4a0167ebaa053db3a0e1b (patch) | |
| tree | 28eae4d90579f84eec9f8d4c612c55bb844dd8d3 | |
| parent | b8e6f962c6f60fa49ae2844c431e6a6101a3df26 (diff) | |
perf/io-cache: Update options for gd2
Update io-cache options for GD2
Updates gluster/glusterfs#302
Change-Id: I7fabf912d1e3cd024989404526db0a29644768c7
Signed-off-by: N Balachandran <nbalacha@redhat.com>
| -rw-r--r-- | xlators/performance/io-cache/src/io-cache.c | 22 | 
1 files changed, 16 insertions, 6 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c index 2c6f9a5d8e1..939d28f63e2 100644 --- a/xlators/performance/io-cache/src/io-cache.c +++ b/xlators/performance/io-cache/src/io-cache.c @@ -2158,35 +2158,45 @@ struct volume_options options[] = {            .description = "Assigns priority to filenames with specific "            "patterns so that when a page needs to be ejected "            "out of the cache, the page of a file whose " -          "priority is the lowest will be ejected earlier" +          "priority is the lowest will be ejected earlier", +          .op_version = {1}, +          .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC          },          { .key  = {"cache-timeout", "force-revalidate-timeout"},            .type = GF_OPTION_TYPE_INT,            .min  = 0,            .max  = 60,            .default_value = "1", -          .description = "The cached data for a file will be retained till " +          .description = "The cached data for a file will be retained for "            "'cache-refresh-timeout' seconds, after which data " -          "re-validation is performed." +          "re-validation is performed.", +          .op_version = {1}, +          .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC          },          { .key  = {"cache-size"},            .type = GF_OPTION_TYPE_SIZET,            .min  = 4 * GF_UNIT_MB,            .max  = INFINITY,            .default_value = "32MB", -          .description = "Size of the read cache." +          .description = "Size of the read cache.", +          .op_version = {1}, +          .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC          },          { .key  = {"min-file-size"},            .type = GF_OPTION_TYPE_SIZET,            .default_value = "0",            .description = "Minimum file size which would be cached by the " -          "io-cache translator." +          "io-cache translator.", +          .op_version = {1}, +          .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC          },          { .key  = {"max-file-size"},            .type = GF_OPTION_TYPE_SIZET,            .default_value = "0",            .description = "Maximum file size which would be cached by the " -          "io-cache translator." +          "io-cache translator.", +          .op_version = {1}, +          .flags = OPT_FLAG_CLIENT_OPT | OPT_FLAG_SETTABLE | OPT_FLAG_DOC          },          { .key = {NULL} },  };  | 
