diff options
| -rw-r--r-- | xlators/features/sdfs/src/sdfs.c | 25 | ||||
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-set.c | 3 | 
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",  | 
