diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2009-07-14 09:43:23 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-07-16 00:37:30 -0700 |
commit | 61d9179fd8e884e3ace5b1ffd38f89e5032dbb42 (patch) | |
tree | e2b84588bc49c9f32075d2284a242d8b029fbe3d /xlators/mount/fuse/src | |
parent | f2ba42e4c6e44db9274d051065a233d9ed622959 (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
Diffstat (limited to 'xlators/mount/fuse/src')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 3 |
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 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 */ |