diff options
author | Shehjar Tikoo <shehjart@zresearch.com> | 2009-04-20 12:29:21 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-21 12:48:09 +0530 |
commit | 86a1c646eeea353643bd6bd5eb040cf584b407c1 (patch) | |
tree | fbb545527c3114b82135d3b1b2de733c90c59c70 /libglusterfsclient/src/libglusterfsclient.h | |
parent | 7c7fd9039b0d0ba17190677f864c5a22d46ab4d6 (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.h')
-rwxr-xr-x | libglusterfsclient/src/libglusterfsclient.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.h b/libglusterfsclient/src/libglusterfsclient.h index 3e674924794..b37813dd6aa 100755 --- a/libglusterfsclient/src/libglusterfsclient.h +++ b/libglusterfsclient/src/libglusterfsclient.h @@ -228,6 +228,10 @@ glusterfs_mknod(glusterfs_handle_t handle, const char *pathname, mode_t mode, char * glusterfs_realpath (glusterfs_handle_t handle, const char *path, char *resolved_path); + +int +glusterfs_mount (char *vmp, glusterfs_init_params_t *ipars); + /* FIXME: review the need for these apis */ /* added for log related initialization in booster fork implementation */ void |