From 55d804a62e5c01a566d96a414d649b93bc12345c Mon Sep 17 00:00:00 2001 From: Poornima G Date: Tue, 20 Feb 2018 11:38:44 +0530 Subject: nl-cache: Change the options to be gd2 compatible Change-Id: Ib9d233df41b85c845643e3e6eb2d680e01859a43 Signed-off-by: Poornima G --- xlators/performance/nl-cache/src/nl-cache.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xlators/performance') diff --git a/xlators/performance/nl-cache/src/nl-cache.c b/xlators/performance/nl-cache/src/nl-cache.c index 9fa7ec8761..575b1e76d5 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} }, -- cgit