From f1313842a25d8d162db36ba8afb2a34b224f41ca Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 14 Jul 2009 09:41:54 +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/fuse') 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 */ -- cgit