From 5f48ad266195ec85171db48cf3dba83f98cbe728 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Wed, 2 May 2012 18:38:52 +0530 Subject: glusterd: Added glusterd command specific optional args for hooks scripts. start volume: --first=yes if the volume is the first to be started and --first=no otherwise stop volume: --last=yes if the volume is the last to be stopped and --last=no otherwise set volume: -o key=value ... for every key, value supplied in volume set command Change-Id: Ia8530771f8b9d7424fd1c736cb4c3622b5cabec2 BUG: 806996 Signed-off-by: Krishnan Parthasarathi Reviewed-on: http://review.gluster.com/3260 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy Reviewed-by: Vijay Bellur --- xlators/mgmt/glusterd/src/glusterd-hooks.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-hooks.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-hooks.h b/xlators/mgmt/glusterd/src/glusterd-hooks.h index a57eab0fa..02d9e4331 100644 --- a/xlators/mgmt/glusterd/src/glusterd-hooks.h +++ b/xlators/mgmt/glusterd/src/glusterd-hooks.h @@ -45,5 +45,6 @@ char * glusterd_hooks_get_hooks_cmd_subdir (glusterd_op_t op); int -glusterd_hooks_run_hooks (char *hooks_path, dict_t *op_ctx); +glusterd_hooks_run_hooks (char *hooks_path, glusterd_op_t op, dict_t *op_ctx, + glusterd_commit_hook_type_t type); #endif -- cgit