17b94a
From dab37dc78d21762ac3379ad505f8fc4ec996d0f7 Mon Sep 17 00:00:00 2001
17b94a
From: Atin Mukherjee <amukherj@redhat.com>
17b94a
Date: Tue, 9 Apr 2019 14:58:29 +0530
17b94a
Subject: [PATCH 094/124] glusterd: load ctime in the client graph only if it's
17b94a
 not turned off
17b94a
17b94a
Considering ctime is a client side feature, we can't blindly load ctime
17b94a
xlator into the client graph if it's explicitly turned off, that'd
17b94a
result into backward compatibility issue where an old client can't mount
17b94a
a volume configured on a server which is having ctime feature.
17b94a
17b94a
> Upstream patch : https://review.gluster.org/#/c/glusterfs/+/22536/
17b94a
>Fixes: bz#1697907
17b94a
>Change-Id: I6ae7b96d056073aa6746de9a449cf319786d45cc
17b94a
>Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
17b94a
17b94a
BUG: 1697820
17b94a
Change-Id: I6ae7b96d056073aa6746de9a449cf319786d45cc
17b94a
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
17b94a
Reviewed-on: https://code.engineering.redhat.com/gerrit/167815
17b94a
Tested-by: RHGS Build Bot <nigelb@redhat.com>
17b94a
Reviewed-by: Mohit Agrawal <moagrawa@redhat.com>
17b94a
Reviewed-by: Amar Tumballi Suryanarayan <amarts@redhat.com>
17b94a
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
17b94a
---
17b94a
 xlators/mgmt/glusterd/src/glusterd-volgen.c | 3 ++-
17b94a
 1 file changed, 2 insertions(+), 1 deletion(-)
17b94a
17b94a
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c
17b94a
index ed24858..012f38e 100644
17b94a
--- a/xlators/mgmt/glusterd/src/glusterd-volgen.c
17b94a
+++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c
17b94a
@@ -4358,7 +4358,8 @@ client_graph_builder(volgen_graph_t *graph, glusterd_volinfo_t *volinfo,
17b94a
         }
17b94a
     }
17b94a
 
17b94a
-    if (conf->op_version >= GD_OP_VERSION_5_0) {
17b94a
+    if (conf->op_version >= GD_OP_VERSION_5_0 &&
17b94a
+        !dict_get_str_boolean(set_dict, "features.ctime", _gf_false)) {
17b94a
         xl = volgen_graph_add(graph, "features/utime", volname);
17b94a
         if (!xl) {
17b94a
             ret = -1;
17b94a
-- 
17b94a
1.8.3.1
17b94a