diff options
Diffstat (limited to 'xlators/mgmt')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 12 | ||||
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-set.c | 6 | 
2 files changed, 6 insertions, 12 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index b7c658e19fc..4129147daf8 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -4280,16 +4280,10 @@ client_graph_builder(volgen_graph_t *graph, glusterd_volinfo_t *volinfo,          }      } -    ret = dict_get_str_boolean(set_dict, "features.utime", _gf_false); -    if (ret == -1) +    xl = volgen_graph_add(graph, "features/utime", volname); +    if (!xl) { +        ret = -1;          goto out; - -    if (ret) { -        xl = volgen_graph_add(graph, "features/utime", volname); -        if (!xl) { -            ret = -1; -            goto out; -        }      }      /* As of now snapshot volume is read-only. Read-only xlator is loaded diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index ac1e011043d..95ed59e7a62 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -2351,7 +2351,7 @@ struct volopt_map_entry glusterd_volopt_map[] = {      },      {          .option = "ctime", -        .key = "storage.ctime", +        .key = "features.ctime",          .voltype = "storage/posix",          .op_version = GD_OP_VERSION_4_1_0,      }, @@ -2900,10 +2900,10 @@ struct volopt_map_entry glusterd_volopt_map[] = {       .value = "off",       .op_version = GD_OP_VERSION_4_1_0,       .flags = VOLOPT_FLAG_CLIENT_OPT}, -    {.key = "features.utime", +    {.key = "features.ctime",       .voltype = "features/utime",       .validate_fn = validate_boolean, -     .value = "off", +     .value = "on",       .option = "!utime",       .op_version = GD_OP_VERSION_4_1_0,       .description = "enable/disable utime translator on the volume.",  | 
