diff options
Diffstat (limited to 'xlators/features/index/src/index.h')
| -rw-r--r-- | xlators/features/index/src/index.h | 14 | 
1 files changed, 14 insertions, 0 deletions
diff --git a/xlators/features/index/src/index.h b/xlators/features/index/src/index.h index 661dcdbc417..d6dcb1c23b4 100644 --- a/xlators/features/index/src/index.h +++ b/xlators/features/index/src/index.h @@ -36,14 +36,28 @@ typedef struct index_fd_ctx {          DIR *dir;  } index_fd_ctx_t; +typedef enum { +        sync_not_started, +        sync_started, +        synced_state, +} to_be_healed_states_t; + +typedef enum { +        INDEX_XATTROP, +        BASE_INDICES_HOLDER, +} readdir_directory; +  typedef struct index_priv {          char *index_basepath;          uuid_t index;          gf_lock_t lock;          uuid_t xattrop_vgfid;//virtual gfid of the xattrop index dir +        uuid_t base_indices_holder_vgfid; //virtual gfid of the +                                          //to_be_healed_xattrop directory          struct list_head callstubs;          pthread_mutex_t mutex;          pthread_cond_t  cond; +        to_be_healed_states_t to_be_healed_states;  } index_priv_t;  #define INDEX_STACK_UNWIND(fop, frame, params ...)      \  | 
