diff options
Diffstat (limited to 'xlators/performance/readdir-ahead')
-rw-r--r-- | xlators/performance/readdir-ahead/src/readdir-ahead.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xlators/performance/readdir-ahead/src/readdir-ahead.c b/xlators/performance/readdir-ahead/src/readdir-ahead.c index db20c211ae6..8e1c0de1c44 100644 --- a/xlators/performance/readdir-ahead/src/readdir-ahead.c +++ b/xlators/performance/readdir-ahead/src/readdir-ahead.c @@ -600,6 +600,8 @@ reconfigure(xlator_t *this, dict_t *options) size_uint64, err); GF_OPTION_RECONF("parallel-readdir", priv->parallel_readdir, options, bool, err); + GF_OPTION_RECONF ("pass-through", this->pass_through, options, bool, + err); return 0; err: @@ -647,6 +649,7 @@ init(xlator_t *this) err); GF_OPTION_INIT("parallel-readdir", priv->parallel_readdir, bool, err); + GF_OPTION_INIT ("pass-through", this->pass_through, bool, err); return 0; @@ -725,6 +728,14 @@ struct volume_options options[] = { "the performance improvement is higher in large " "clusters" }, + { .key = {"pass-through"}, + .type = GF_OPTION_TYPE_BOOL, + .default_value = "false", + .op_version = {GD_OP_VERSION_4_1_0}, + .flags = OPT_FLAG_SETTABLE | OPT_FLAG_DOC | OPT_FLAG_CLIENT_OPT, + .tags = {"readdir-ahead"}, + .description = "Enable/Disable readdir ahead translator" + }, { .key = {NULL} }, }; |