summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-07-14 09:41:54 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-16 00:37:56 -0700
commitf1313842a25d8d162db36ba8afb2a34b224f41ca (patch)
tree47e2ffa2478dd757c3c68222efcaad50a459b2ef
parent55f476455c66dc1e21bbbe88a29c9ae304a81002 (diff)
fuse-bridge: Export user.glusterfs-booster-mount xattr
This needs to be exported in order to have the booster Mount Point Bypass technique work through libglusterfsclient. Booster uses the mount point to register with libglusterfsclient as a VMP. Subsequently, all file operations on the mounted GlusterFS mount point get redirected to libglusterfsclient. This fixes bug 136. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 136 (booster does not redirect ops on GlusterFS mount point into libglusterfsclient) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=136
-rw-r--r--xlators/mount/fuse/src/fuse-bridge.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c
index 667316a49..61fd2576b 100644
--- a/xlators/mount/fuse/src/fuse-bridge.c
+++ b/xlators/mount/fuse/src/fuse-bridge.c
@@ -2030,6 +2030,9 @@ fuse_xattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
} else if (!strcmp (state->name, "user.glusterfs-booster-path")) {
fuse_reply_xattr_buf (state, req, state->loc.path,
strlen (state->loc.path) + 1);
+ } else if (!strcmp (state->name, "user.glusterfs-booster-mount")) {
+ fuse_reply_xattr_buf (state, req, priv->mount_point,
+ strlen(priv->mount_point) + 1);
} else {
fuse_reply_err (req, ENODATA);
} /* if(value_data)...else */