From 78d67da17356b48cf1d5a6595764650d5b200ba7 Mon Sep 17 00:00:00 2001 From: Sunil Kumar Acharya Date: Thu, 23 Mar 2017 12:50:41 +0530 Subject: cluster/ec: OpenFD heal implementation for EC Existing EC code doesn't try to heal the OpenFD to avoid unnecessary healing of the data later. Fix implements the healing of open FDs before carrying out file operations on them by making an attempt to open the FDs on required up nodes. BUG: 1431955 Change-Id: Ib696f59c41ffd8d5678a484b23a00bb02764ed15 Signed-off-by: Sunil Kumar Acharya --- xlators/cluster/ec/src/ec-common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/cluster/ec/src/ec-common.h') diff --git a/xlators/cluster/ec/src/ec-common.h b/xlators/cluster/ec/src/ec-common.h index 35c6a8107c2..c3e291585ef 100644 --- a/xlators/cluster/ec/src/ec-common.h +++ b/xlators/cluster/ec/src/ec-common.h @@ -140,4 +140,7 @@ int32_t ec_lock_unlocked(call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret, int32_t op_errno, dict_t *xdata); +void +ec_update_fd_status (fd_t *fd, xlator_t *xl, + int child_index, int32_t ret_status); #endif /* __EC_COMMON_H__ */ -- cgit