From 2d29b67a63779ac7b115d214bb037c12b122cf2f Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Tue, 19 Jul 2011 09:05:54 +0530 Subject: glusterfsd: check for process mode before performing mount create_fuse_mount() now checks if it is a client process before performing mount. If not a client process, it returns an error. Added changes suggested Change-Id: If8548ad60d345bb8cd09686ceed0d83522799761 BUG: 2469 Reviewed-on: http://review.gluster.com/5 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- libglusterfs/src/glusterfs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs') diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index 78af68c0081..c746cfe023b 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -343,6 +343,7 @@ struct _glusterfs_ctx { indicate how many times the graph has got changed */ pid_t mtab_pid; /* pid of the process which updates the mtab */ + int process_mode; /*mode in which process is runninng*/ }; typedef struct _glusterfs_ctx glusterfs_ctx_t; -- cgit