summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient-internals.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@zresearch.com>2009-04-20 12:29:21 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-21 12:48:09 +0530
commit86a1c646eeea353643bd6bd5eb040cf584b407c1 (patch)
treefbb545527c3114b82135d3b1b2de733c90c59c70 /libglusterfsclient/src/libglusterfsclient-internals.h
parent7c7fd9039b0d0ba17190677f864c5a22d46ab4d6 (diff)
libglusterfsclient: Add virtual mount point support
One part of the glusterfsclient library requires users to use a handle to address a particular glusterfs context. This can become cumbersome for applications that need to use multiple such context. For such applications, we make it easy by letting them define virtual mount points(VMPs), which are just paths that identify a particular glusterfs context. This is done through a new glusterfs_mount(..) interface. Subsequenly, any path based operations, that pre-pend a VMP before the files and directories inside the glusterfsd export, get internally routed to the correct glusterfs context. This helps users do away with the need to maintain their own path-to-glusterfs_handle_t mapping. The old handle-based interface still exists for whoever wishes to use it. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient-internals.h')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient-internals.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient-internals.h b/libglusterfsclient/src/libglusterfsclient-internals.h
index 24364b079ff..9646b0575ad 100755
--- a/libglusterfsclient/src/libglusterfsclient-internals.h
+++ b/libglusterfsclient/src/libglusterfsclient-internals.h
@@ -219,4 +219,15 @@ libgf_client_lookup (libglusterfs_client_ctx_t *ctx,
dict_t **dict,
dict_t *xattr_req);
+/* We're not expecting more than 10-15
+ * VMPs per process so a list is acceptable.
+ */
+struct vmp_entry {
+ struct list_head list;
+ char * vmp;
+ int vmplen;
+ glusterfs_handle_t handle;
+};
+
+
#endif