1VOTEQUORUM_GETINFO(C3o)rosync Cluster Engine Programmer's ManVuOaTlEQUORUM_GETINFO(3)
2
3
4
6 votequorum_getinfo - Get information about the VoteQuorum service
7
9 #include <corosync/votequorum.h>
10
11 int votequorum_getinfo(votequorum_handle_t *handle, unsigned int
12 nodeid, struct votequorum_info *info);
13
15 The votequorum_getinfo function is used to get information about the
16 voteing system and its nodes.
17
18 The votequorum_info structure is defined as follows:
19
20 struct votequorum_info {
21 unsigned int node_id;
22 unsigned int node_votes;
23 unsigned int node_expected_votes;
24 unsigned int highest_expected;
25 unsigned int total_votes;
26 unsigned int quorum;
27 unsigned int flags;
28 };
29
30 #define VOTEQUORUM_INFO_FLAG_DIRTY 1
31 #define VOTEQUORUM_INFO_FLAG_DISALLOWED 2
32 #define VOTEQUORUM_INFO_FLAG_TWONODE 4
33 #define VOTEQUORUM_INFO_FLAG_QUORATE 8
34
35
36 The members starting node_ hold information specific to the requested
37 nodeid, the other are general to the voting system.
38
40 This call returns the CS_OK value if successful, otherwise an error is
41 returned.
42
44 Callbacks are not support at the moment.
45
47 The errors are undocumented.
48
50 votequorum_overview(8), votequorum_finalize(3), votequorum_fd_get(3),
51 votequorum_dispatch(3),
52
53corosync Man Page 2009-01-26 VOTEQUORUM_GETINFO(3)