summaryrefslogtreecommitdiffstats
path: root/xlators/features/sdfs
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/features/sdfs
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/features/sdfs')
-rw-r--r--xlators/features/sdfs/src/sdfs.c25
1 files changed, 25 insertions, 0 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"
+ },
+};