From 482d77b85d84bf5c2b48e4717f8d186967e42e63 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Thu, 27 Jan 2011 05:23:32 +0000 Subject: implement "--client-pid" option which can forcibly set the pid value in messages to a predefined value Signed-off-by: Csaba Henk Signed-off-by: Anand V. Avati BUG: 2310 (georeplication) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2310 --- xlators/mount/fuse/src/fuse-helpers.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/mount/fuse/src/fuse-helpers.c') diff --git a/xlators/mount/fuse/src/fuse-helpers.c b/xlators/mount/fuse/src/fuse-helpers.c index 7dbf09bf5c2..ec2cfe29601 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; -- cgit