1VOTEQUORUM_QDEVICE_CPoOrLoLs(y3n)c Cluster Engine Programmer'VsOTMEaQnUuOaRlUM_QDEVICE_POLL(3)
2
3
4

NAME

6       votequorum_qdevice_poll - Tells votequorum the result of the quorum de‐
7       vice poll
8

SYNOPSIS

10       #include <corosync/votequorum.h>
11
12       int votequorum_qdevice_poll(votequorum_handle_t handle,  const  char  *
13       name, unsigned int cast_vote, votequorum_ring_id_t ring_id);
14

DESCRIPTION

16       The  votequorum_qdevice_poll  is  called by the quorum device subsystem
17       (not provided as part of votequorum) to tell the voting system  if  the
18       quorum  device  is  present/active  or  not. If cast_vote is 1 then the
19       votes for the device are included in the quorum calculation,  otherwise
20       not.   Current  ring_id  must  be  set (one get in votequorum_notifica‐
21       tion_fn callback) otherwise poll is ignored.  This  routine  should  be
22       called  at regular intervals to ensure that the device status is always
23       known to votequorum. If votequorum_qdevice_poll is not called for  (de‐
24       fault)  10  seconds (or 30 seconds for sync phase) then the device will
25       be deemed to be dead and its votes removed from the cluster. This  does
26       not  unregister  the  device.   The default poll time can be changed by
27       setting the cmap variable quorum.device.timeout for normal operation or
28       quorum.device.sync_timeout for synchronization phase.
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       votequorum_overview(3),   votequorum_initialize(3),   votequorum_final‐
54       ize(3),   votequorum_getinfo(3),   votequorum_trackstart(3),   votequo‐
55       rum_trackstop(3), votequorum_fd_get(3),  votequorum_dispatch(3),  vote‐
56       quorum_context_set(3),   votequorum_context_get(3),   votequorum_setex‐
57       pected(3),   votequorum_setvotes(3),    votequorum_qdevice_register(3),
58       votequorum_qdevice_unregister(3),  votequorum_qdevice_update(3),  vote‐
59       quorum_qdevice_master_wins(3),
60
61corosync Man Page                 2021-06-03        VOTEQUORUM_QDEVICE_POLL(3)
Impressum