35 #ifndef IPC_VOTEQUORUM_H_DEFINED 36 #define IPC_VOTEQUORUM_H_DEFINED 39 #define VOTEQUORUM_QDEVICE_NODEID 0 40 #define VOTEQUORUM_QDEVICE_MAX_NAME_LEN 255 41 #define VOTEQUORUM_QDEVICE_DEFAULT_TIMEOUT 10000 70 struct qb_ipc_request_header header __attribute__((aligned(8)));
75 struct qb_ipc_request_header header __attribute__((aligned(8)));
80 struct qb_ipc_request_header header __attribute__((aligned(8)));
86 struct qb_ipc_request_header header __attribute__((aligned(8)));
93 struct qb_ipc_request_header header __attribute__((aligned(8)));
99 struct qb_ipc_request_header header __attribute__((aligned(8)));
105 struct qb_ipc_request_header header __attribute__((aligned(8)));
110 struct qb_ipc_request_header header __attribute__((aligned(8)));
116 struct qb_ipc_request_header header __attribute__((aligned(8)));
120 struct qb_ipc_request_header header __attribute__((aligned(8)));
125 struct qb_ipc_response_header header __attribute__((aligned(8)));
128 #define VOTEQUORUM_INFO_TWONODE 1 129 #define VOTEQUORUM_INFO_QUORATE 2 130 #define VOTEQUORUM_INFO_WAIT_FOR_ALL 4 131 #define VOTEQUORUM_INFO_LAST_MAN_STANDING 8 132 #define VOTEQUORUM_INFO_AUTO_TIE_BREAKER 16 133 #define VOTEQUORUM_INFO_ALLOW_DOWNSCALE 32 134 #define VOTEQUORUM_INFO_QDEVICE_REGISTERED 64 135 #define VOTEQUORUM_INFO_QDEVICE_ALIVE 128 136 #define VOTEQUORUM_INFO_QDEVICE_CAST_VOTE 256 137 #define VOTEQUORUM_INFO_QDEVICE_MASTER_WINS 512 139 #define VOTEQUORUM_NODESTATE_MEMBER 1 140 #define VOTEQUORUM_NODESTATE_DEAD 2 141 #define VOTEQUORUM_NODESTATE_LEAVING 3 144 struct qb_ipc_response_header header __attribute__((aligned(8)));
163 struct qb_ipc_response_header header __attribute__((aligned(8)));
172 struct qb_ipc_response_header header __attribute__((aligned(8)));
177 static inline void marshall_from_mar_votequorum_ring_id (
185 static inline void marshall_to_mar_votequorum_ring_id (
char oldname[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
unsigned int highest_expected
unsigned int expected_votes
char newname[VOTEQUORUM_QDEVICE_MAX_NAME_LEN]
unsigned int qdevice_votes
#define VOTEQUORUM_QDEVICE_MAX_NAME_LEN
struct memb_ring_id ring_id
unsigned int expected_votes