summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-volume-set.c
diff options
context:
space:
mode:
authorVarsha Rao <varao@redhat.com>2018-03-16 14:23:25 +0530
committerAmar Tumballi <amarts@redhat.com>2018-04-11 10:53:48 +0000
commit909e2cdf06fbd7b4161fff402fc6ef7b5e189c21 (patch)
treeb2190d23646807254b149be54448f136dbd4e143 /xlators/mgmt/glusterd/src/glusterd-volume-set.c
parent0002c36666c9b043a330ee08533a87fe7fd16491 (diff)
xlators/performance: Add pass-through option
Add pass-through option in performance traslators. Set the option in GF_OPTION_INIT() and GF_OPTION_RECONF() Updates: #304 Change-Id: If1537450147d154905831e36f7162a32866d7ad6 Signed-off-by: Varsha Rao <varao@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-set.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c37
1 files changed, 36 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
index db4f7e4bcc8..dcd4f580633 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
@@ -1762,8 +1762,18 @@ struct volopt_map_entry glusterd_volopt_map[] = {
.option = "cleanup-disconnected-reqs",
.op_version = GD_OP_VERSION_4_1_0
},
+ { .key = "performance.iot-pass-through",
+ .voltype = "performance/io-threads",
+ .option = "pass-through",
+ .op_version = GD_OP_VERSION_4_1_0
+ },
/* Other perf xlators' options */
+ { .key = "performance.io-cache-pass-through",
+ .voltype = "performance/io-cache",
+ .option = "pass-through",
+ .op_version = GD_OP_VERSION_4_1_0
+ },
{ .key = "performance.cache-size",
.voltype = "performance/quick-read",
.type = NO_DOC,
@@ -1874,12 +1884,32 @@ struct volopt_map_entry glusterd_volopt_map[] = {
.op_version = 3,
.flags = VOLOPT_FLAG_CLIENT_OPT
},
+ { .key = "performance.open-behind-pass-through",
+ .voltype = "performance/open-behind",
+ .option = "pass-through",
+ .op_version = GD_OP_VERSION_4_1_0,
+ },
{ .key = "performance.read-ahead-page-count",
.voltype = "performance/read-ahead",
.option = "page-count",
.op_version = 1,
.flags = VOLOPT_FLAG_CLIENT_OPT
},
+ { .key = "performance.read-ahead-pass-through",
+ .voltype = "performance/read-ahead",
+ .option = "pass-through",
+ .op_version = GD_OP_VERSION_4_1_0,
+ },
+ { .key = "performance.readdir-ahead-pass-through",
+ .voltype = "performance/readdir-ahead",
+ .option = "pass-through",
+ .op_version = GD_OP_VERSION_4_1_0,
+ },
+ { .key = "performance.md-cache-pass-through",
+ .voltype = "performance/md-cache",
+ .option = "pass-through",
+ .op_version = GD_OP_VERSION_4_1_0
+ },
{ .key = "performance.md-cache-timeout",
.voltype = "performance/md-cache",
.option = "md-cache-timeout",
@@ -1930,7 +1960,12 @@ struct volopt_map_entry glusterd_volopt_map[] = {
.description = "A comma separeted list of xattrs that shall be "
"cached by md-cache. The only wildcard allowed is '*'"
},
- /* Crypt xlator options */
+ { .key = "performance.nl-cache-pass-through",
+ .voltype = "performance/nl-cache",
+ .option = "pass-through",
+ .op_version = GD_OP_VERSION_4_1_0
+ },
+ /* Crypt xlator options */
{ .key = "features.encryption",
.voltype = "encryption/crypt",