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>
This commit is contained in:
Rajesh Joseph 2015-06-25 16:10:29 +05:30 committed by Niels de Vos
parent 264776f7af
commit b15ba49546

View File

@ -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);