![]() |
pacemaker
2.0.3-4b1f869f0f
Scalable High-Availability cluster resource manager
|
#include <glib.h>#include <dirent.h>#include <unistd.h>#include <stdbool.h>#include <sys/types.h>#include <crm/common/logging.h>

Go to the source code of this file.
Macros | |
| #define | CRM_FAIL_COUNT_PREFIX "fail-count" |
| #define | CRM_LAST_FAILURE_PREFIX "last-failure" |
Functions | |
| char * | generate_series_filename (const char *directory, const char *series, int sequence, gboolean bzip) |
| int | get_last_sequence (const char *directory, const char *series) |
| void | write_last_sequence (const char *directory, const char *series, int sequence, int max) |
| int | crm_chown_last_sequence (const char *directory, const char *series, uid_t uid, gid_t gid) |
| bool | pcmk__daemon_can_write (const char *dir, const char *file) |
| void | crm_sync_directory (const char *name) |
| char * | crm_read_contents (const char *filename) |
| int | crm_write_sync (int fd, const char *contents) |
| int | crm_set_nonblocking (int fd) |
| const char * | crm_get_tmpdir (void) |
| void | pcmk__close_fds_in_child (bool) |
| int | crm_procfs_process_info (struct dirent *entry, char *name, int *pid) |
| int | crm_procfs_pid_of (const char *name) |
| unsigned int | crm_procfs_num_cores (void) |
| void | crm_schema_init (void) |
| void | crm_schema_cleanup (void) |
| int | crm_pid_active (long pid, const char *daemon) |
| long | crm_pidfile_inuse (const char *filename, long mypid, const char *daemon) |
| long | crm_read_pidfile (const char *filename) |
| int | crm_lock_pidfile (const char *filename, const char *name) |
| char * | generate_op_key (const char *rsc_id, const char *op_type, guint interval_ms) |
| Generate an operation key. More... | |
| char * | generate_notify_key (const char *rsc_id, const char *notify_type, const char *op_type) |
| char * | generate_transition_key (int action, int transition_id, int target_rc, const char *node) |
| void | filter_action_parameters (xmlNode *param_set, const char *version) |
| const char * | pcmk_message_name (const char *name) |
| Get name to be used as identifier for cluster messages. More... | |
| long long | crm_int_helper (const char *text, char **end_text) |
| guint | crm_parse_ms (const char *text) |
| bool | crm_starts_with (const char *str, const char *prefix) |
| Check whether a string starts with a certain sequence. More... | |
| gboolean | crm_ends_with (const char *s, const char *match) |
| gboolean | crm_ends_with_ext (const char *s, const char *match) |
| char * | add_list_element (char *list, const char *value) |
| bool | crm_compress_string (const char *data, int length, int max, char **result, unsigned int *result_len) |
| gint | crm_alpha_sort (gconstpointer a, gconstpointer b) |
| Compare two strings alphabetically (case-insensitive) More... | |
| #define CRM_FAIL_COUNT_PREFIX "fail-count" |
Definition at line 131 of file internal.h.
| #define CRM_LAST_FAILURE_PREFIX "last-failure" |
Definition at line 132 of file internal.h.
| char* add_list_element | ( | char * | list, |
| const char * | value | ||
| ) |
| gint crm_alpha_sort | ( | gconstpointer | a, |
| gconstpointer | b | ||
| ) |
Compare two strings alphabetically (case-insensitive)
| [in] | a | First string to compare |
| [in] | b | Second string to compare |
| int crm_chown_last_sequence | ( | const char * | directory, |
| const char * | series, | ||
| uid_t | uid, | ||
| gid_t | gid | ||
| ) |
| bool crm_compress_string | ( | const char * | data, |
| int | length, | ||
| int | max, | ||
| char ** | result, | ||
| unsigned int * | result_len | ||
| ) |
| gboolean crm_ends_with | ( | const char * | s, |
| const char * | match | ||
| ) |
| gboolean crm_ends_with_ext | ( | const char * | s, |
| const char * | match | ||
| ) |
| long long crm_int_helper | ( | const char * | text, |
| char ** | end_text | ||
| ) |
| int crm_lock_pidfile | ( | const char * | filename, |
| const char * | name | ||
| ) |
| long crm_pidfile_inuse | ( | const char * | filename, |
| long | mypid, | ||
| const char * | daemon | ||
| ) |
| int crm_procfs_process_info | ( | struct dirent * | entry, |
| char * | name, | ||
| int * | pid | ||
| ) |
| bool crm_starts_with | ( | const char * | str, |
| const char * | prefix | ||
| ) |
Check whether a string starts with a certain sequence.
| [in] | str | String to check |
| [in] | match | Sequence to match against beginning of str |
TRUE if str begins with match, FALSE otherwise | void filter_action_parameters | ( | xmlNode * | param_set, |
| const char * | version | ||
| ) |
Definition at line 263 of file operations.c.
| char* generate_notify_key | ( | const char * | rsc_id, |
| const char * | notify_type, | ||
| const char * | op_type | ||
| ) |
Definition at line 128 of file operations.c.
| char* generate_op_key | ( | const char * | rsc_id, |
| const char * | op_type, | ||
| guint | interval_ms | ||
| ) |
Generate an operation key.
| [in] | rsc_id | ID of resource being operated on |
| [in] | op_type | Operation name |
| [in] | interval_ms | Operation interval |
Definition at line 39 of file operations.c.
| char* generate_series_filename | ( | const char * | directory, |
| const char * | series, | ||
| int | sequence, | ||
| gboolean | bzip | ||
| ) |
| char* generate_transition_key | ( | int | action, |
| int | transition_id, | ||
| int | target_rc, | ||
| const char * | node | ||
| ) |
Definition at line 194 of file operations.c.
| int get_last_sequence | ( | const char * | directory, |
| const char * | series | ||
| ) |
| bool pcmk__daemon_can_write | ( | const char * | dir, |
| const char * | file | ||
| ) |
| const char* pcmk_message_name | ( | const char * | name | ) |
Get name to be used as identifier for cluster messages.
| [in] | name | Actual system name to check |
1.8.17