diff options
author | Rajesh Joseph <rjoseph@redhat.com> | 2015-06-25 16:10:29 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-06-26 03:21:16 -0700 |
commit | b15ba49546172786fb0416dd5a2802f638cacbb2 (patch) | |
tree | 450f5fd6c76e5019bee1f091e4fa4aeab357d677 | |
parent | 264776f7af6dffabc2216cf46fd1885a309f6e62 (diff) |
ganesha: volinfo is not persisted after modifying options
ganesha disables gluster NFS when it is enabled. Gluster NFS
is disabled by storing nfs.disable as "on" in volinfo of each
volume in the cluster. But volinfo is not persisted after the
change.
Due to which wrong info is passed in handshake leading to volume
checksum mismatch.
Bug: 1235751
Change-Id: Icd642f5068cc934bb77676fb8ef71b958a7b7384
Signed-off-by: Rajesh Joseph <rjoseph@redhat.com>
Reviewed-on: http://review.gluster.org/11412
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Meghana M <mmadhusu@redhat.com>
Reviewed-by: soumya k <skoduri@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-ganesha.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-ganesha.c b/xlators/mgmt/glusterd/src/glusterd-ganesha.c index ff061209a30..2638e105408 100644 --- a/xlators/mgmt/glusterd/src/glusterd-ganesha.c +++ b/xlators/mgmt/glusterd/src/glusterd-ganesha.c @@ -633,6 +633,14 @@ start_ganesha (char **op_errstr) ret = dict_set_str (vol_opts, "nfs.disable", "on"); if (ret) goto out; + + ret = glusterd_store_volinfo (volinfo, + GLUSTERD_VOLINFO_VER_AC_INCREMENT); + if (ret) { + *op_errstr = gf_strdup ("Failed to store the " + "Volume information"); + goto out; + } } ret = priv->nfs_svc.stop (&(priv->nfs_svc), SIGKILL); |