1QUORUM_TRACKSTART(3C)orosync Cluster Engine Programmer's ManuQaUlORUM_TRACKSTART(3)
2
3
4

NAME

6       quorum_trackstart - Enable callbacks notification.
7

SYNOPSIS

9       #include <corosync/quorum.h>
10
11       int quorum_trackstart(quorum_handle_t *handle, unsigned int flags);
12

DESCRIPTION

14       The quorum_trackstart function is used to enable callbacks notification
15       from the quorum API.
16
17       Every time the voting configuraton changes (eg a node  joins  or  leave
18       the cluster) or the quorum status change, the notification is queued.
19
20       The notification is dispatched via quorum_dispatch() function that will
21       execute the callback.
22
23       The flags argument is defined by one or more of  the  following  values
24       and values can be bitwise-or'd
25
26       #define CS_TRACK_CURRENT      0x01
27       #define CS_TRACK_CHANGES      0x02
28       #define CS_TRACK_CHANGES_ONLY 0x04
29

RETURN VALUE

31       This  call returns the CS_OK value if successful, otherwise an error is
32       returned.
33

ERRORS

35       CS_ERR_TRY_AGAIN Resource temporarily unavailable
36
37       CS_ERR_INVALID_PARAM Invalid argument
38
39       CS_ERR_ACCESS Permission denied
40
41       CS_ERR_LIBRARY The connection failed
42
43       CS_ERR_INTERRUPT System call interrupted by a signal
44
45       CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
46
47       CS_ERR_MESSAGE_ERROR Incorrect auth message received
48
49       CS_ERR_NO_MEMORY Not enough memory to complete the requested task
50
51

SEE ALSO

53       quorum_overview(8),  quorum_initialize(3),   quorum_finalize(3),   quo‐
54       rum_getquorate(3),  quorum_trackstop(3),  quorum_fd_get(3), quorum_dis‐
55       patch(3), quorum_context_set(3), quorum_context_get(3)
56
57corosync Man Page                 2018-10-30              QUORUM_TRACKSTART(3)
Impressum