diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2012-02-14 22:40:34 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-02-20 21:23:21 -0800 |
commit | 5f117a4a1fca3ec2d163fe77615cf6859c0450e4 (patch) | |
tree | 695913cadfb8d8fdacd240bf5e84dcb78a0cfdbc /xlators/cluster/afr/src/afr-self-heald.h | |
parent | 8456c28af75a4083286fc6ceadc03f2703f4c9b6 (diff) |
cluster/afr: Self-heald, Index integration
Change-Id: Ic68eb00b356a6ee3cb88fe2bde50374be7a64ba3
BUG: 763820
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Reviewed-on: http://review.gluster.com/2749
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heald.h')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heald.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heald.h b/xlators/cluster/afr/src/afr-self-heald.h index 6eb119b073f..eb10219957d 100644 --- a/xlators/cluster/afr/src/afr-self-heald.h +++ b/xlators/cluster/afr/src/afr-self-heald.h @@ -26,18 +26,26 @@ #define IS_ENTRY_PARENT(entry) (!strcmp (entry, "..")) #define AFR_ALL_CHILDREN -1 +typedef enum { + INDEX, + FULL, +} afr_crawl_type_t; typedef struct afr_crawl_data_ { - int child; - pid_t pid; + int child; + pid_t pid; + afr_crawl_type_t crawl; + xlator_t *readdir_xl; } afr_crawl_data_t; void afr_proactive_self_heal (xlator_t *this, int idx); -void afr_build_root_loc (inode_t *inode, loc_t *loc); +void afr_build_root_loc (xlator_t *this, loc_t *loc); int afr_set_root_gfid (dict_t *dict); inline void afr_fill_loc_info (loc_t *loc, struct iatt *iatt, struct iatt *parent); +void +afr_do_poll_self_heal (void *data); #endif /* __AFR_SELF_HEALD_H__ */ |