From 03f731a8b32db7bef7c5e9ffc11c16f670ffe960 Mon Sep 17 00:00:00 2001 From: Mohammed Rafi KC Date: Mon, 23 Nov 2015 12:05:54 +0530 Subject: glusterd: Change volume start into v3 framework As part of volume start, if the volume is of tier type then we need to start tiering daemon also. But before starting tier daemon all the bricks should be started. So by changing volume start into v3 framework, we can do tier start in post validate phase Change-Id: If921067f4739e6b9a3239fc5717696eaf382c22a BUG: 1284372 Signed-off-by: Mohammed Rafi KC Reviewed-on: http://review.gluster.org/12718 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Avra Sengupta Reviewed-by: Atin Mukherjee --- xlators/mgmt/glusterd/src/glusterd-op-sm.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.h b/xlators/mgmt/glusterd/src/glusterd-op-sm.h index 67b2742520e..454181d188f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.h +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.h @@ -22,6 +22,7 @@ #include "byte-order.h" #include "glusterd.h" #include "protocol-common.h" +#include "glusterd-hooks.h" #define GD_OP_PROTECTED (0x02) #define GD_OP_UNPROTECTED (0x04) @@ -167,6 +168,10 @@ typedef struct glusterd_all_volume_options { char *option; } glusterd_all_vol_opts; +int +glusterd_op_commit_hook (glusterd_op_t op, dict_t *op_ctx, + glusterd_commit_hook_type_t type); + int glusterd_op_sm_new_event (glusterd_op_sm_event_type_t event_type, glusterd_op_sm_event_t **new_event); -- cgit