summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-07-20 01:25:12 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-20 14:29:30 -0700
commit03d6dae5a4003bcaf86eb887f63444c0565ad32c (patch)
tree4e3096aa674b58a8c97ad35a1bb0a07e13e38000 /libglusterfsclient/src/libglusterfsclient.h
parenta12f332cff050db3aa3905436158cbd339fa6963 (diff)
libglusterfsclient: Fake a fsid for every VMP
This is needed to work around the replicate behaviour of possibly returning device number for the same file from different subvolumes. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 148 (replicate: Returns st_dev from different subvols resulting in ESTALE thru unfs3booster) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=148
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.h')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.h b/libglusterfsclient/src/libglusterfsclient.h
index 795857c9c..acab70423 100755
--- a/libglusterfsclient/src/libglusterfsclient.h
+++ b/libglusterfsclient/src/libglusterfsclient.h
@@ -133,13 +133,15 @@ typedef void * glusterfs_dir_t;
/* Function Call Interface */
/* libglusterfsclient initialization function.
* @ctx : the structure described above filled with required values.
+ * @fakefsid: User generated fsid to be used to identify this
+ * volume.
*
* Returns NULL on failure and the non-NULL pointer on success.
* On failure, the error description might be present in the logfile
* depending on the log level.
*/
glusterfs_handle_t
-glusterfs_init (glusterfs_init_params_t *ctx);
+glusterfs_init (glusterfs_init_params_t *ctx, u_int32_t fakefsid);