summaryrefslogtreecommitdiffstats
path: root/xlators/performance/read-ahead/src/read-ahead.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/performance/read-ahead/src/read-ahead.c')
-rw-r--r--xlators/performance/read-ahead/src/read-ahead.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/xlators/performance/read-ahead/src/read-ahead.c b/xlators/performance/read-ahead/src/read-ahead.c
index a6c2a68b32e..d001784797a 100644
--- a/xlators/performance/read-ahead/src/read-ahead.c
+++ b/xlators/performance/read-ahead/src/read-ahead.c
@@ -1132,6 +1132,9 @@ reconfigure (xlator_t *this, dict_t *options)
GF_OPTION_RECONF ("page-size", conf->page_size, options, size_uint64,
out);
+ GF_OPTION_RECONF ("pass-through", this->pass_through, options, bool,
+ out);
+
ret = 0;
out:
return ret;
@@ -1172,6 +1175,8 @@ init (xlator_t *this)
GF_OPTION_INIT ("force-atime-update", conf->force_atime_update, bool, out);
+ GF_OPTION_INIT ("pass-through", this->pass_through, bool, out);
+
conf->files.next = &conf->files;
conf->files.prev = &conf->files;
@@ -1280,5 +1285,13 @@ struct volume_options options[] = {
.tags = {"read-ahead"},
.description = "Page size with which read-ahead performs server I/O"
},
+ { .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 = {"read-ahead"},
+ .description = "Enable/Disable read ahead translator"
+ },
{ .key = {NULL} },
};