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