summaryrefslogtreecommitdiffstats
path: root/api/src/glfs-mgmt.c
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2017-01-03 20:13:40 +0530
committerVijay Bellur <vbellur@redhat.com>2017-04-18 16:32:49 -0400
commit43695cfba3bcbb53d7127128e37a724862f65017 (patch)
tree1d427ef16a2067629c4a31ca462af46fa7a03e58 /api/src/glfs-mgmt.c
parentc1e61fd5dfd118830e896a45d398a2041006d74e (diff)
api: Fix incorrect strcmp() during fs initialisation
Just chanced upon this while reading graph switch code in libgfapi. Change-Id: Ie62b410c22e6d0768a24187c5d587b6d3fc996bf Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: https://review.gluster.org/16319 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Amar Tumballi <amarts@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'api/src/glfs-mgmt.c')
-rw-r--r--api/src/glfs-mgmt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/src/glfs-mgmt.c b/api/src/glfs-mgmt.c
index 3c8b3b0102f..1bfebcf2d03 100644
--- a/api/src/glfs-mgmt.c
+++ b/api/src/glfs-mgmt.c
@@ -61,10 +61,10 @@ glfs_process_volfp (struct glfs *fs, FILE *fp)
}
for (trav = graph->first; trav; trav = trav->next) {
- if (strcmp (trav->type, "mount/fuse") == 0) {
+ if (strcmp (trav->type, "mount/api") == 0) {
gf_msg ("glfs", GF_LOG_ERROR, EINVAL,
- API_MSG_FUSE_XLATOR_ERROR,
- "fuse xlator cannot be specified "
+ API_MSG_API_XLATOR_ERROR,
+ "api master xlator cannot be specified "
"in volume file");
goto out;
}