From cefdd02776d204744a13215029f1c3fe024283e4 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Fri, 2 Nov 2018 09:08:42 +0530 Subject: ctime: Enable ctime feature by default This patch does following. 1. Enable ctime feature by default. 2. Earlier, to enable the ctime feature, two options needed to be enabled a. gluster vol set utime on b. gluster vol set ctime on This is inconvenient from the usability point of view. Hence changed it to following single option a. gluster vol set ctime on fixes: bz#1624724 Change-Id: I04af0e5de1ea6126c58a06ba8a26e22f9f06344e Signed-off-by: Kotresh HR --- xlators/mgmt/glusterd/src/glusterd-volgen.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-volgen.c') 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 -- cgit