diff options
author | Aravinda VK <avishwan@redhat.com> | 2018-12-06 15:09:26 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-12-07 05:28:23 +0000 |
commit | 40a9e53a44e887658fade3f03afc018e82b941b9 (patch) | |
tree | b3507afcb2aae141a23e4919f31ac24a847a5585 /xlators/performance/nl-cache | |
parent | f168db1da76775f11026c922a51a718b54abc4c9 (diff) |
New xlator option to control enable/disable of xlators in Gd2
Since glusterd2 don't maintain the xlator option details in code, it
directly reads the xlators options table from `*.so` files. To support
enable and disable of xlator new option added to the option table with
the name same as xlator name itself.
This change will not affect the functionality with glusterd1.
Change-Id: I23d9e537f3f422de72ddb353484466d3519de0c1
updates: #302
Signed-off-by: Aravinda VK <avishwan@redhat.com>
Diffstat (limited to 'xlators/performance/nl-cache')
-rw-r--r-- | xlators/performance/nl-cache/src/nl-cache.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/performance/nl-cache/src/nl-cache.c b/xlators/performance/nl-cache/src/nl-cache.c index 78c29031ddb..6bbe63f7d96 100644 --- a/xlators/performance/nl-cache/src/nl-cache.c +++ b/xlators/performance/nl-cache/src/nl-cache.c @@ -779,6 +779,14 @@ struct xlator_dumpops nlc_dumpops = { struct volume_options nlc_options[] = { { + .key = {"nl-cache"}, + .type = GF_OPTION_TYPE_BOOL, + .default_value = "off", + .description = "enable/disable nl-cache", + .op_version = {GD_OP_VERSION_6_0}, + .flags = OPT_FLAG_SETTABLE, + }, + { .key = {"nl-cache-positive-entry"}, .type = GF_OPTION_TYPE_BOOL, .default_value = "false", |