From d594900dbca92c356152be65fce16f77c402117c Mon Sep 17 00:00:00 2001 From: Ravishankar N Date: Fri, 18 Aug 2017 18:05:54 +0530 Subject: afr: check validity of afr_reply ...in various self-heal code paths. Originally found by Pranith in __afr_selfheal_name_impunge () Also change __afr_selfheal_assign_gfid() to send lookup only on those bricks that don't have a gfid matching that of the source. Change-Id: I70a2ccd750a2af92c5fc36e0eefb2b6125404b4a BUG: 1482923 Signed-off-by: Pranith Kumar K Signed-off-by: Ravishankar N Reviewed-on: https://review.gluster.org/18065 Smoke: Gluster Build System CentOS-regression: Gluster Build System --- xlators/cluster/afr/src/afr-self-heal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/cluster/afr/src/afr-self-heal.h') diff --git a/xlators/cluster/afr/src/afr-self-heal.h b/xlators/cluster/afr/src/afr-self-heal.h index 82608d261d5..15b47f66b4c 100644 --- a/xlators/cluster/afr/src/afr-self-heal.h +++ b/xlators/cluster/afr/src/afr-self-heal.h @@ -215,6 +215,8 @@ afr_selfheal_discover_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int op_ret, int op_errno, inode_t *inode, struct iatt *buf, dict_t *xdata, struct iatt *parbuf); +void +afr_reply_copy (struct afr_reply *dst, struct afr_reply *src); void afr_replies_copy (struct afr_reply *dst, struct afr_reply *src, int count); -- cgit