root/daemons/controld/controld_fencing.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright 2004-2022 the Pacemaker project contributors
   3  *
   4  * The version control history for this file may have further details.
   5  *
   6  * This source code is licensed under the GNU Lesser General Public License
   7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
   8  */
   9 
  10 #ifndef CONTROLD_FENCING__H
  11 #  define CONTROLD_FENCING__H
  12 
  13 #include <stdbool.h>                // bool
  14 #include <pacemaker-internal.h>     // pcmk__graph_t, pcmk__graph_action_t
  15 
  16 // reaction to notification of local node being fenced
  17 void set_fence_reaction(const char *reaction_s);
  18 
  19 // stonith fail counts
  20 void st_fail_count_reset(const char * target);
  21 void update_stonith_max_attempts(const char* value);
  22 
  23 // stonith API client
  24 void controld_trigger_fencer_connect(void);
  25 void controld_disconnect_fencer(bool destroy);
  26 int controld_execute_fence_action(pcmk__graph_t *graph,
  27                                   pcmk__graph_action_t *action);
  28 bool controld_verify_stonith_watchdog_timeout(const char *value);
  29 
  30 // stonith cleanup list
  31 void add_stonith_cleanup(const char *target);
  32 void remove_stonith_cleanup(const char *target);
  33 void purge_stonith_cleanup(void);
  34 void execute_stonith_cleanup(void);
  35 
  36 // stonith history synchronization
  37 void te_trigger_stonith_history_sync(bool long_timeout);
  38 void te_cleanup_stonith_history_sync(stonith_t *st, bool free_timers);
  39 
  40 #endif

/* [previous][next][first][last][top][bottom][index][help] */