diff options
Diffstat (limited to 'xlators')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-set.c | 1 | ||||
| -rw-r--r-- | xlators/storage/posix/src/posix.c | 16 | 
2 files changed, 4 insertions, 13 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index 377a417b28b..a147708f63c 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -2792,6 +2792,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {          },          { .option      = "gfid2path",            .key         = "storage.gfid2path", +          .type        = NO_DOC,            .voltype     = "storage/posix",            .op_version  = GD_OP_VERSION_3_12_0,          }, diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 188b378a58b..d858878d3e8 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -7612,18 +7612,6 @@ init (xlator_t *this)                                        " set.");          } -        tmp_data = dict_get (this->options, "gfid2path"); -        if (tmp_data) { -                if (gf_string2boolean (tmp_data->data, -                                       &_private->gfid2path) == -1) { -                        ret = -1; -                        gf_msg (this->name, GF_LOG_ERROR, 0, -                                P_MSG_INVALID_OPTION, "wrong value provided " -                                "for 'gfid2path'"); -                        goto out; -                } -        } -          ret = dict_get_str (this->options, "glusterd-uuid", &guuid);          if (!ret) {                  if (gf_uuid_parse (guuid, _private->glusterd_uuid)) @@ -7783,6 +7771,8 @@ init (xlator_t *this)  		goto out;  	} +        GF_OPTION_INIT ("gfid2path", _private->gfid2path, bool, out); +  	GF_OPTION_INIT ("gfid2path-separator", gfid2path_sep, str, out);          if (set_gfid2path_separator (_private, gfid2path_sep) != 0) {                  gf_msg (this->name, GF_LOG_ERROR, 0, P_MSG_INVALID_ARGUMENT, @@ -7977,7 +7967,7 @@ struct volume_options options[] = {          },          { .key = {"gfid2path"},            .type = GF_OPTION_TYPE_BOOL, -          .default_value = "off", +          .default_value = "on",            .description = "Enable logging metadata for gfid to path conversion"          },          { .key = {"gfid2path-separator"},  | 
