From 61d9179fd8e884e3ace5b1ffd38f89e5032dbb42 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 14 Jul 2009 09:43:23 +0000 Subject: 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 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 --- xlators/mount/fuse/src/fuse-bridge.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/mount') diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 51878c4e201..efc8ea54d1b 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -2086,6 +2086,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 */ -- cgit