summaryrefslogtreecommitdiffstats
path: root/xlators/mount/fuse/src/fuse-helpers.c
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-01-27 05:23:32 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-01-27 03:17:03 -0800
commit482d77b85d84bf5c2b48e4717f8d186967e42e63 (patch)
tree26464428f8bbb777a3c45e838214e3e0914f1c5a /xlators/mount/fuse/src/fuse-helpers.c
parenta2a92b99fc031544ff8a87861d34b2bbbdd2753c (diff)
implement "--client-pid" option which can forcibly set the pid value in messages to a predefined value
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2310 (georeplication) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2310
Diffstat (limited to 'xlators/mount/fuse/src/fuse-helpers.c')
-rw-r--r--xlators/mount/fuse/src/fuse-helpers.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c
index 7dbf09bf5..ec2cfe296 100644
--- a/xlators/mount/fuse/src/fuse-helpers.c
+++ b/xlators/mount/fuse/src/fuse-helpers.c
@@ -141,10 +141,12 @@ get_call_frame_for_req (fuse_state_t *state)
fuse_in_header_t *finh = NULL;
call_frame_t *frame = NULL;
xlator_t *this = NULL;
+ fuse_private_t *priv = NULL;
pool = state->pool;
finh = state->finh;
this = state->this;
+ priv = this->private;
frame = create_frame (this, pool);
if (!frame)
@@ -158,6 +160,9 @@ get_call_frame_for_req (fuse_state_t *state)
frame->root->unique = finh->unique;
}
+ if (priv && priv->client_pid_set)
+ frame->root->pid = priv->client_pid;
+
frame->root->type = GF_OP_TYPE_FOP;
return frame;