summaryrefslogtreecommitdiffstats
path: root/ctdb/server/ctdb_control.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-03-23 10:07:44 +0100
committerMichael Adam <obnox@samba.org>2009-03-23 10:07:44 +0100
commita83ed1d7430d96fa2648796ac3520d4e3dce01c9 (patch)
treefc81d1cb6eba8efde744d5242b689f456f305999 /ctdb/server/ctdb_control.c
parentfd7121371755d5c693ca85ed4581dd9a4b2f0718 (diff)
parent629d5ee1fa9b84150c25c151b3bf0690cb787a90 (diff)
downloadsamba-a83ed1d7430d96fa2648796ac3520d4e3dce01c9.tar.gz
samba-a83ed1d7430d96fa2648796ac3520d4e3dce01c9.tar.xz
samba-a83ed1d7430d96fa2648796ac3520d4e3dce01c9.zip
Merge commit 'ctdb-ronnie/master'
(This used to be ctdb commit 39a972b0d6d0d70282c25c54a124b67431467e77)
Diffstat (limited to 'ctdb/server/ctdb_control.c')
-rw-r--r--ctdb/server/ctdb_control.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_control.c b/ctdb/server/ctdb_control.c
index b8b31c9b51..ac77696a4b 100644
--- a/ctdb/server/ctdb_control.c
+++ b/ctdb/server/ctdb_control.c
@@ -418,6 +418,25 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
CHECK_CONTROL_DATA_SIZE(0);
return ctdb_control_recd_ping(ctdb);
+ case CTDB_CONTROL_EVENT_SCRIPT_INIT:
+ CHECK_CONTROL_DATA_SIZE(0);
+ return ctdb_control_event_script_init(ctdb);
+
+ case CTDB_CONTROL_EVENT_SCRIPT_START:
+ return ctdb_control_event_script_start(ctdb, indata);
+
+ case CTDB_CONTROL_EVENT_SCRIPT_STOP:
+ CHECK_CONTROL_DATA_SIZE(sizeof(int32_t));
+ return ctdb_control_event_script_stop(ctdb, indata);
+
+ case CTDB_CONTROL_EVENT_SCRIPT_FINISHED:
+ CHECK_CONTROL_DATA_SIZE(0);
+ return ctdb_control_event_script_finished(ctdb);
+
+ case CTDB_CONTROL_GET_EVENT_SCRIPT_STATUS:
+ CHECK_CONTROL_DATA_SIZE(0);
+ return ctdb_control_get_event_script_status(ctdb, outdata);
+
default:
DEBUG(DEBUG_CRIT,(__location__ " Unknown CTDB control opcode %u\n", opcode));
return -1;