summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
authorKaushal M <kaushal@gluster.com>2011-07-19 09:05:54 +0530
committerAnand Avati <avati@gluster.com>2011-07-21 06:38:42 -0700
commit2d29b67a63779ac7b115d214bb037c12b122cf2f (patch)
tree8b65610b4dc1d614f477596107b791d009a01702 /libglusterfs
parent37b4b7ccad5a479ed2ce96598e902a12fd457bd5 (diff)
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 <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/glusterfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h
index 78af68c00..c746cfe02 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;