ctdb-daemon: Change handling of default capabilities
[obnox/samba/samba-obnox.git] / ctdb / include / ctdb_protocol.h
index d9cad7c6f18e19801ac06639d9b3e5452e059f23..bb0056e9d67d6358fee74af84d3f5bd21035d3b4 100644 (file)
@@ -415,6 +415,11 @@ enum ctdb_controls {CTDB_CONTROL_PROCESS_EXISTS          = 0,
                    CTDB_CONTROL_GET_RUNSTATE            = 138,
                    CTDB_CONTROL_DB_DETACH               = 139,
                    CTDB_CONTROL_GET_NODES_FILE          = 140,
+                   CTDB_CONTROL_DB_FREEZE               = 141,
+                   CTDB_CONTROL_DB_THAW                 = 142,
+                   CTDB_CONTROL_DB_TRANSACTION_START    = 143,
+                   CTDB_CONTROL_DB_TRANSACTION_COMMIT   = 144,
+                   CTDB_CONTROL_DB_TRANSACTION_CANCEL   = 145,
 };
 
 /*
@@ -482,17 +487,6 @@ struct ctdb_req_message {
        uint8_t data[1];
 };
 
-struct ctdb_req_getdbpath {
-       struct ctdb_req_header hdr;
-       uint32_t db_id;
-};
-
-struct ctdb_reply_getdbpath {
-       struct ctdb_req_header hdr;
-       uint32_t datalen;
-       uint8_t data[1];
-};
-
 struct ctdb_req_control {
        struct ctdb_req_header hdr;
        uint32_t opcode;
@@ -595,6 +589,16 @@ struct ctdb_node_map {
 /* This capability is set if NATGW is enabled */
 #define CTDB_CAP_NATGW                 0x00000008
 
+/*
+ * Node features
+ */
+#define CTDB_CAP_PARALLEL_RECOVERY     0x00010000
+
+#define CTDB_CAP_FEATURES              (CTDB_CAP_PARALLEL_RECOVERY)
+
+#define CTDB_CAP_DEFAULT               (CTDB_CAP_RECMASTER | \
+                                        CTDB_CAP_LMASTER   | \
+                                        CTDB_CAP_FEATURES)
 
 struct ctdb_public_ip {
        uint32_t pnn;