pacemaker  2.0.4-2deceaa3ae
Scalable High-Availability cluster resource manager
Macros | Enumerations | Functions | Variables
common.h File Reference
#include <glib.h>
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RSC_ROLE_MAX   RSC_ROLE_MASTER+1
 
#define RSC_ROLE_UNKNOWN_S   "Unknown"
 
#define RSC_ROLE_STOPPED_S   "Stopped"
 
#define RSC_ROLE_STARTED_S   "Started"
 
#define RSC_ROLE_SLAVE_S   "Slave"
 
#define RSC_ROLE_MASTER_S   "Master"
 

Enumerations

enum  action_fail_response {
  action_fail_ignore , action_fail_recover , action_fail_migrate , action_fail_block ,
  action_fail_stop , action_fail_standby , action_fail_fence , action_fail_restart_container ,
  action_fail_reset_remote , action_fail_demote
}
 
enum  action_tasks {
  no_action , monitor_rsc , stop_rsc , stopped_rsc ,
  start_rsc , started_rsc , action_notify , action_notified ,
  action_promote , action_promoted , action_demote , action_demoted ,
  shutdown_crm , stonith_node
}
 
enum  rsc_recovery_type { recovery_stop_start , recovery_stop_only , recovery_block }
 
enum  rsc_start_requirement { rsc_req_nothing , rsc_req_quorum , rsc_req_stonith }
 
enum  rsc_role_e {
  RSC_ROLE_UNKNOWN , RSC_ROLE_STOPPED , RSC_ROLE_STARTED , RSC_ROLE_SLAVE ,
  RSC_ROLE_MASTER
}
 
enum  pe_print_options {
  pe_print_log = 0x0001 , pe_print_html = 0x0002 , pe_print_ncurses = 0x0004 , pe_print_printf = 0x0008 ,
  pe_print_dev = 0x0010 , pe_print_details = 0x0020 , pe_print_max_details = 0x0040 , pe_print_rsconly = 0x0080 ,
  pe_print_ops = 0x0100 , pe_print_suppres_nl = 0x0200 , pe_print_xml = 0x0400 , pe_print_brief = 0x0800 ,
  pe_print_pending = 0x1000 , pe_print_clone_details = 0x2000 , pe_print_clone_active = 0x4000 , pe_print_implicit = 0x8000
}
 

Functions

const char * task2text (enum action_tasks task)
 
enum action_tasks text2task (const char *task)
 
enum rsc_role_e text2role (const char *role)
 
const char * role2text (enum rsc_role_e role)
 
const char * fail2text (enum action_fail_response fail)
 
const char * pe_pref (GHashTable *options, const char *name)
 
void calculate_active_ops (GList *sorted_op_list, int *start_index, int *stop_index)
 

Variables

gboolean was_processing_error
 
gboolean was_processing_warning
 

Macro Definition Documentation

◆ RSC_ROLE_MASTER_S

#define RSC_ROLE_MASTER_S   "Master"

Definition at line 102 of file common.h.

◆ RSC_ROLE_MAX

#define RSC_ROLE_MAX   RSC_ROLE_MASTER+1

Definition at line 96 of file common.h.

◆ RSC_ROLE_SLAVE_S

#define RSC_ROLE_SLAVE_S   "Slave"

Definition at line 101 of file common.h.

◆ RSC_ROLE_STARTED_S

#define RSC_ROLE_STARTED_S   "Started"

Definition at line 100 of file common.h.

◆ RSC_ROLE_STOPPED_S

#define RSC_ROLE_STOPPED_S   "Stopped"

Definition at line 99 of file common.h.

◆ RSC_ROLE_UNKNOWN_S

#define RSC_ROLE_UNKNOWN_S   "Unknown"

Definition at line 98 of file common.h.

Enumeration Type Documentation

◆ action_fail_response

Enumerator
action_fail_ignore 
action_fail_recover 
action_fail_migrate 
action_fail_block 
action_fail_stop 
action_fail_standby 
action_fail_fence 
action_fail_restart_container 
action_fail_reset_remote 
action_fail_demote 

Definition at line 31 of file common.h.

◆ action_tasks

Enumerator
no_action 
monitor_rsc 
stop_rsc 
stopped_rsc 
start_rsc 
started_rsc 
action_notify 
action_notified 
action_promote 
action_promoted 
action_demote 
action_demoted 
shutdown_crm 
stonith_node 

Definition at line 59 of file common.h.

◆ pe_print_options

Enumerator
pe_print_log 
pe_print_html 
pe_print_ncurses 
pe_print_printf 
pe_print_dev 
pe_print_details 
pe_print_max_details 
pe_print_rsconly 
pe_print_ops 
pe_print_suppres_nl 
pe_print_xml 
pe_print_brief 
pe_print_pending 
pe_print_clone_details 
pe_print_clone_active 
pe_print_implicit 

Definition at line 104 of file common.h.

◆ rsc_recovery_type

Enumerator
recovery_stop_start 
recovery_stop_only 
recovery_block 

Definition at line 76 of file common.h.

◆ rsc_role_e

enum rsc_role_e
Enumerator
RSC_ROLE_UNKNOWN 
RSC_ROLE_STOPPED 
RSC_ROLE_STARTED 
RSC_ROLE_SLAVE 
RSC_ROLE_MASTER 

Definition at line 88 of file common.h.

◆ rsc_start_requirement

Enumerator
rsc_req_nothing 
rsc_req_quorum 
rsc_req_stonith 

Definition at line 82 of file common.h.

Function Documentation

◆ calculate_active_ops()

void calculate_active_ops ( GList *  sorted_op_list,
int *  start_index,
int *  stop_index 
)

Definition at line 2167 of file unpack.c.

◆ fail2text()

const char* fail2text ( enum action_fail_response  fail)

Definition at line 321 of file common.c.

◆ pe_pref()

const char* pe_pref ( GHashTable *  options,
const char *  name 
)

Definition at line 315 of file common.c.

◆ role2text()

const char* role2text ( enum rsc_role_e  role)

Definition at line 466 of file common.c.

◆ task2text()

const char* task2text ( enum action_tasks  task)

Definition at line 413 of file common.c.

◆ text2role()

enum rsc_role_e text2role ( const char *  role)

Definition at line 466 of file common.c.

◆ text2task()

enum action_tasks text2task ( const char *  task)

Definition at line 321 of file common.c.

Variable Documentation

◆ was_processing_error

gboolean was_processing_error
extern

Definition at line 20 of file common.c.

◆ was_processing_warning

gboolean was_processing_warning
extern

Definition at line 21 of file common.c.