summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2018-04-13 12:03:48 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-05-24 05:52:35 +0000
commit1a4a900589b35faec28f67c7c26004a240bf6a6c (patch)
treedd70bb23c35bbe49b35f3c4eb41412b65acde0e8 /xlators
parent18cbdeb529c2e7b60733fbbb9bf9bab2d5fd238c (diff)
sdfs: enable by default
also provide an option for pass-through to enable/disable xlator fixes: #421 Change-Id: Ie30a91ad09620db62ab07b797e23123fd1200d1f Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/sdfs/src/sdfs.c25
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c3
2 files changed, 26 insertions, 2 deletions
diff --git a/xlators/features/sdfs/src/sdfs.c b/xlators/features/sdfs/src/sdfs.c
index 66ba874f646..8f46da3f740 100644
--- a/xlators/features/sdfs/src/sdfs.c
+++ b/xlators/features/sdfs/src/sdfs.c
@@ -1466,6 +1466,8 @@ init (xlator_t *this)
goto out;
}
+ GF_OPTION_INIT ("pass-through", this->pass_through, bool, out);
+
ret = 0;
out:
@@ -1473,6 +1475,19 @@ out:
}
int
+reconfigure (xlator_t *this, dict_t *options)
+{
+ int ret = -1;
+
+ GF_OPTION_RECONF ("pass-through", this->pass_through, options, bool,
+ out);
+
+ ret = 0;
+ out:
+ return ret;
+}
+
+int
fini (xlator_t *this)
{
mem_pool_destroy (this->local_pool);
@@ -1496,3 +1511,13 @@ struct xlator_fops fops = {
struct xlator_cbks cbks;
+struct volume_options options[] = {
+ { .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 = {"sdfs"},
+ .description = "Enable/Disable dentry serialize functionality"
+ },
+};
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
index 4fbc45d7cb3..8b2b1f80239 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
@@ -3799,11 +3799,10 @@ struct volopt_map_entry glusterd_volopt_map[] = {
},
{ .key = "features.sdfs",
.voltype = "features/sdfs",
- .value = "off",
+ .value = "on",
.option = "!features",
.op_version = GD_OP_VERSION_4_0_0,
.description = "enable/disable dentry serialization xlator in volume",
- .flags = VOLOPT_FLAG_CLIENT_OPT | VOLOPT_FLAG_XLATOR_OPT,
.type = NO_DOC,
},
{ .key = "features.cloudsync",