From 874059dc94a123f78c19ba14bee2d5540c106a9e Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 22 Feb 2017 09:49:05 +0530 Subject: protocol/client: Add gfid in request for better tcpdumps It is difficult to match opendir/releasedir or open/release calls without gfid associlation to find fd-leaks on the bricks. So assigning gfid also in the request which was already there in the on-wire format. BUG: 1425676 Change-Id: Iec908eeaa2f97295d45140a529b7f8fb834a1553 Signed-off-by: Pranith Kumar K Reviewed-on: https://review.gluster.org/16706 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Raghavendra G --- xlators/protocol/client/src/client-rpc-fops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/protocol') diff --git a/xlators/protocol/client/src/client-rpc-fops.c b/xlators/protocol/client/src/client-rpc-fops.c index 37d119fc08c..f70511709e1 100644 --- a/xlators/protocol/client/src/client-rpc-fops.c +++ b/xlators/protocol/client/src/client-rpc-fops.c @@ -3263,6 +3263,7 @@ client_fdctx_destroy (xlator_t *this, clnt_fd_ctx_t *fdctx) if (fdctx->is_dir) { gfs3_releasedir_req req = {{0,},}; + memcpy (req.gfid, fdctx->gfid, 16); req.fd = fdctx->remote_fd; gf_msg_trace (this->name, 0, "sending releasedir on fd"); client_submit_request (this, &req, fr, &clnt3_3_fop_prog, @@ -3272,6 +3273,7 @@ client_fdctx_destroy (xlator_t *this, clnt_fd_ctx_t *fdctx) (xdrproc_t)xdr_gfs3_releasedir_req); } else { gfs3_release_req req = {{0,},}; + memcpy (req.gfid, fdctx->gfid, 16); req.fd = fdctx->remote_fd; gf_msg_trace (this->name, 0, "sending release on fd"); client_submit_request (this, &req, fr, &clnt3_3_fop_prog, -- cgit