summaryrefslogtreecommitdiffstats
path: root/glusterfsd/src/glusterfsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfsd/src/glusterfsd.c')
-rw-r--r--glusterfsd/src/glusterfsd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index 2350b5b059e..bf6959e34cf 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -1150,6 +1150,7 @@ glusterfs_process_volfp (glusterfs_ctx_t *ctx, FILE *fp)
{
glusterfs_graph_t *graph = NULL;
int ret = 0;
+ xlator_t *trav = NULL;
graph = glusterfs_graph_construct (fp);
@@ -1158,6 +1159,16 @@ glusterfs_process_volfp (glusterfs_ctx_t *ctx, FILE *fp)
goto out;
}
+ for (trav = graph->first; trav; trav = trav->next) {
+ if (strcmp (trav->type, "mount/fuse") == 0) {
+ gf_log ("glusterfsd", GF_LOG_ERROR,
+ "fuse xlator cannot be specified "
+ "in volume file");
+ ret = -1;
+ goto out;
+ }
+ }
+
ret = glusterfs_graph_prepare (graph, ctx);
if (ret) {