diff options
Diffstat (limited to 'xlators/features/sdfs')
-rw-r--r-- | xlators/features/sdfs/src/sdfs.c | 25 |
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" + }, +}; |