From db506cec11cdb2235aac7b6a896b4071bdcc6ae3 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 17 Nov 2015 14:00:10 +0530 Subject: mgmt/gluster: Handle tier brick volgen Index xlator watches only some xattrs based on type of volume. i.e. disperse/afr. When the volume becomes tiered then index is not adding these options in the volfile leading to no maintenance of indices. Thus no proactive self-heals. With this fix, we write brick volfiles considering the type of volume they belong to. BUG: 1250803 Change-Id: Ibe8f2d4ad5cb350306ab7ca0753e0f9a40b96a26 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/12595 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Kaushal M --- xlators/mgmt/glusterd/src/glusterd-utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.h b/xlators/mgmt/glusterd/src/glusterd-utils.h index 42e037b417f..b7302c8cb91 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.h +++ b/xlators/mgmt/glusterd/src/glusterd-utils.h @@ -675,4 +675,8 @@ glusterd_defrag_rpc_put (glusterd_defrag_info_t *defrag); int32_t glusterd_count_connected_peers (int32_t *count); +int +glusterd_volume_brick_for_each (glusterd_volinfo_t *volinfo, void *data, + int (*fn) (glusterd_volinfo_t *, glusterd_brickinfo_t *, + dict_t *mod_dict, void *)); #endif -- cgit