summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2020-11-19 11:16:30 +0530
committerGitHub <noreply@github.com>2020-11-19 11:16:30 +0530
commitda5ac9ae437079b20d5d559171be16d2d90ec46a (patch)
tree1e9c695d90727e0c6ed30e8027f299b39eccecbd
parentec023965a224b88f97c2c0e50015280393f76c5a (diff)
downloadglusterfs-da5ac9ae437079b20d5d559171be16d2d90ec46a.tar.gz
glusterfs-da5ac9ae437079b20d5d559171be16d2d90ec46a.tar.xz
glusterfs-da5ac9ae437079b20d5d559171be16d2d90ec46a.zip
glusterd: fix a bug in enabling nfs ganesha (#1813)
As detailed in the github issue,`gluster volume set Svolname ganesha.enable on` is currently broken due to a minor typo in the commit e081ac683b6a5bda548913, Fixing it now. Updates: #1778 Change-Id: I99276fedc43f40e8a439e545bd2b8d1698aa03ee Signed-off-by: Ravishankar N <ravishankar@redhat.com> Tested-by: Strahil Nikolov <hunter86_bg@yahoo.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 558f04fb2a..d7bf96adf9 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -1177,7 +1177,7 @@ glusterd_op_stage_set_volume(dict_t *dict, char **op_errstr)
}
} else if (len_strcmp(key, keylen, "ganesha.enable")) {
key_matched = _gf_true;
- if (!strcmp(value, "off") == 0) {
+ if (strcmp(value, "off") == 0) {
ret = ganesha_manage_export(dict, "off", _gf_true, op_errstr);
if (ret)
goto out;