diff options
author | Poornima G <pgurusid@redhat.com> | 2018-02-20 11:38:44 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-02-26 02:29:08 +0000 |
commit | 55d804a62e5c01a566d96a414d649b93bc12345c (patch) | |
tree | 1bcb3b606e78d9f95717fe3b74731a8ffd235aac /xlators | |
parent | 32f5bc795046fad2fc5dcdafafcf1e8c3df7d7a3 (diff) |
nl-cache: Change the options to be gd2 compatible
Change-Id: Ib9d233df41b85c845643e3e6eb2d680e01859a43
Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/performance/nl-cache/src/nl-cache.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/performance/nl-cache/src/nl-cache.c b/xlators/performance/nl-cache/src/nl-cache.c index 9fa7ec87616..575b1e76d59 100644 --- a/xlators/performance/nl-cache/src/nl-cache.c +++ b/xlators/performance/nl-cache/src/nl-cache.c @@ -779,6 +779,8 @@ struct volume_options options[] = { { .key = {"nl-cache-positive-entry"}, .type = GF_OPTION_TYPE_BOOL, .default_value = "false", + .op_version = {GD_OP_VERSION_3_11_0}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC, .description = "Cache the name of the files/directories that was" " looked up and are present in a directory", }, @@ -786,6 +788,8 @@ struct volume_options options[] = { .type = GF_OPTION_TYPE_SIZET, .min = 0, .default_value = "131072", + .op_version = {GD_OP_VERSION_3_11_0}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC, .description = "the value over which caching will be disabled for" "a while and the cache is cleared based on LRU", }, @@ -793,6 +797,8 @@ struct volume_options options[] = { .type = GF_OPTION_TYPE_TIME, .min = 0, .default_value = "60", + .op_version = {GD_OP_VERSION_3_11_0}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_CLIENT_OPT | OPT_FLAG_DOC, .description = "Time period after which cache has to be refreshed", }, { .key = {NULL} }, |