value 138 daemons/attrd/attrd_alerts.c const char *attr, const char *value) value 144 daemons/attrd/attrd_alerts.c node, nodeid, attr, value); value 108 daemons/attrd/attrd_commands.c gboolean is_private, const char *peer, uint32_t peerid, const char *value, gboolean is_force_write) value 118 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_VALUE, value); value 148 daemons/attrd/attrd_commands.c const char *value = crm_element_value(xml, PCMK__XA_ATTR_DAMPENING); value 163 daemons/attrd/attrd_commands.c if(value) { value 164 daemons/attrd/attrd_commands.c dampen = crm_get_msec(value); value 165 daemons/attrd/attrd_commands.c crm_trace("Created attribute %s with delay %dms (%s)", a->id, dampen, value); value 174 daemons/attrd/attrd_commands.c crm_warn("Ignoring invalid delay %s for attribute %s", value, a->id); value 242 daemons/attrd/attrd_commands.c const char *value = crm_element_value(xml, PCMK__XA_ATTR_VALUE); value 250 daemons/attrd/attrd_commands.c crm_debug("Setting %s to %s", regex, value); value 288 daemons/attrd/attrd_commands.c if (value) { value 289 daemons/attrd/attrd_commands.c if (attrd_value_needs_expansion(value)) { value 296 daemons/attrd/attrd_commands.c int_value = attrd_expand_value(value, (v? v->current : NULL)); value 298 daemons/attrd/attrd_commands.c crm_info("Expanded %s=%s to %d", attr, value, int_value); value 302 daemons/attrd/attrd_commands.c value = crm_element_value(xml, PCMK__XA_ATTR_VALUE); value 306 daemons/attrd/attrd_commands.c crm_debug("Broadcasting %s[%s]=%s%s", attr, host, value, value 781 daemons/attrd/attrd_commands.c const char *value = crm_element_value(xml, PCMK__XA_ATTR_VALUE); value 850 daemons/attrd/attrd_commands.c crm_debug("Setting %s for all hosts to %s", attr, value); value 863 daemons/attrd/attrd_commands.c if (filter && !pcmk__str_eq(v->current, value, pcmk__str_casei) value 869 daemons/attrd/attrd_commands.c attr, host, v->current, value, peer->uname); value 882 daemons/attrd/attrd_commands.c } else if (!pcmk__str_eq(v->current, value, pcmk__str_casei)) { value 884 daemons/attrd/attrd_commands.c attr, host, v->current? v->current : "(unset)", value? value : "(unset)", peer->uname); value 886 daemons/attrd/attrd_commands.c v->current = (value? strdup(value) : NULL); value 901 daemons/attrd/attrd_commands.c crm_trace("Unchanged %s[%s] from %s is %s(Set the forced write flag)", attr, host, peer->uname, value); value 904 daemons/attrd/attrd_commands.c crm_trace("Unchanged %s[%s] from %s is %s", attr, host, peer->uname, value); value 1104 daemons/attrd/attrd_commands.c build_update_element(xmlNode *parent, attribute_t *a, const char *nodeid, const char *value) value 1131 daemons/attrd/attrd_commands.c if(value) { value 1132 daemons/attrd/attrd_commands.c crm_xml_add(xml_obj, XML_NVPAIR_ATTR_VALUE, value); value 219 daemons/attrd/attrd_utils.c attrd_value_needs_expansion(const char *value) value 221 daemons/attrd/attrd_utils.c return ((strlen(value) >= (plus_plus_len + 2)) value 222 daemons/attrd/attrd_utils.c && (value[plus_plus_len] == '+') value 223 daemons/attrd/attrd_utils.c && ((value[plus_plus_len + 1] == '+') value 224 daemons/attrd/attrd_utils.c || (value[plus_plus_len + 1] == '='))); value 237 daemons/attrd/attrd_utils.c attrd_expand_value(const char *value, const char *old_value) value 242 daemons/attrd/attrd_utils.c if (value[plus_plus_len + 1] != '+') { value 243 daemons/attrd/attrd_utils.c const char *offset_s = value + (plus_plus_len + 2); value 251 daemons/attrd/pacemaker-attrd.c const char *value = crm_element_value(xml, F_ORIG); value 252 daemons/attrd/pacemaker-attrd.c client->name = crm_strdup_printf("%s.%d", value?value:"unknown", client->pid); value 31 daemons/attrd/pacemaker-attrd.h gboolean attrd_value_needs_expansion(const char *value); value 32 daemons/attrd/pacemaker-attrd.h int attrd_expand_value(const char *value, const char *old_value); value 69 daemons/attrd/pacemaker-attrd.h const char *attr, const char *value); value 236 daemons/based/based_callbacks.c const char *value = crm_element_value(op_request, F_CIB_CLIENTNAME); value 238 daemons/based/based_callbacks.c if (value == NULL) { value 241 daemons/based/based_callbacks.c cib_client->name = strdup(value); value 242 daemons/based/based_callbacks.c if (crm_is_daemon_name(value)) { value 1422 daemons/based/based_callbacks.c disconnect_remote_client(gpointer key, gpointer value, gpointer user_data) value 1424 daemons/based/based_callbacks.c pcmk__client_t *a_client = value; value 177 daemons/based/based_common.c int *value = malloc(sizeof(int)); value 179 daemons/based/based_common.c if(value) { value 180 daemons/based/based_common.c *value = lpc; value 181 daemons/based/based_common.c g_hash_table_insert(operation_hash, (gpointer) cib_server_ops[lpc].operation, value); value 187 daemons/based/based_common.c int *value = g_hash_table_lookup(operation_hash, op); value 189 daemons/based/based_common.c if (value) { value 190 daemons/based/based_common.c *operation = *value; value 204 daemons/based/based_common.c const char *value = NULL; value 246 daemons/based/based_common.c value = crm_element_value(msg, field); value 247 daemons/based/based_common.c if (value != NULL) { value 248 daemons/based/based_common.c crm_xml_add(copy, field, value); value 190 daemons/based/based_io.c const char *value = NULL; value 269 daemons/based/based_io.c value = crm_element_value(root, name); value 270 daemons/based/based_io.c if (value == NULL) { value 281 daemons/based/based_io.c value = crm_element_value(root, name); value 282 daemons/based/based_io.c if (value == NULL) { value 287 daemons/based/based_io.c value = crm_element_value(root, name); value 288 daemons/based/based_io.c if (value == NULL) { value 231 daemons/based/based_messages.c const char *value = crm_element_value(existing_cib, XML_ATTR_VALIDATION); value 237 daemons/based/based_messages.c if (value != NULL) { value 238 daemons/based/based_messages.c current_version = get_schema_version(value); value 46 daemons/based/based_notify.c cib_notify_send_one(gpointer key, gpointer value, gpointer user_data) value 51 daemons/based/based_notify.c pcmk__client_t *client = value; value 410 daemons/based/based_remote.c const char *value = NULL; value 412 daemons/based/based_remote.c value = crm_element_name(command); value 413 daemons/based/based_remote.c if (!pcmk__str_eq(value, "cib_command", pcmk__str_casei)) { value 419 daemons/based/based_remote.c value = crm_element_value(command, F_CLIENTNAME); value 420 daemons/based/based_remote.c if (value == NULL) { value 423 daemons/based/based_remote.c client->name = strdup(value); value 428 daemons/based/based_remote.c value = crm_element_value(command, F_CIB_CALLBACK_TOKEN); value 429 daemons/based/based_remote.c if (value != NULL) { value 430 daemons/based/based_remote.c client->userdata = strdup(value); value 32 daemons/controld/controld_attrd.c log_attrd_error(const char *host, const char *name, const char *value, value 59 daemons/controld/controld_attrd.c CRM_XS " rc=%d", name, value, node_type, host, when, value 79 daemons/controld/controld_attrd.c update_attrd_helper(const char *host, const char *name, const char *value, value 113 daemons/controld/controld_attrd.c value, XML_CIB_TAG_STATUS, NULL, value 120 daemons/controld/controld_attrd.c value, interval_spec, value 148 daemons/controld/controld_attrd.c log_attrd_error(host, name, value, is_remote_node, command, rc); value 153 daemons/controld/controld_attrd.c update_attrd(const char *host, const char *name, const char *value, value 156 daemons/controld/controld_attrd.c update_attrd_helper(host, name, value, NULL, user_name, is_remote_node, value 683 daemons/controld/controld_control.c const char *value = NULL; value 723 daemons/controld/controld_control.c value = crmd_pref(config_hash, XML_CONFIG_ATTR_DC_DEADTIME); value 724 daemons/controld/controld_control.c election_trigger->period_ms = crm_parse_interval_spec(value); value 726 daemons/controld/controld_control.c value = crmd_pref(config_hash, "node-action-limit"); /* Also checks migration-limit */ value 727 daemons/controld/controld_control.c throttle_update_job_max(value); value 729 daemons/controld/controld_control.c value = crmd_pref(config_hash, "load-threshold"); value 730 daemons/controld/controld_control.c if(value) { value 731 daemons/controld/controld_control.c throttle_set_load_target(strtof(value, NULL) / 100.0); value 734 daemons/controld/controld_control.c value = crmd_pref(config_hash, "no-quorum-policy"); value 735 daemons/controld/controld_control.c if (pcmk__str_eq(value, "suicide", pcmk__str_casei) && pcmk__locate_sbd()) { value 741 daemons/controld/controld_control.c value = crmd_pref(config_hash,"stonith-max-attempts"); value 742 daemons/controld/controld_control.c update_stonith_max_attempts(value); value 744 daemons/controld/controld_control.c value = crmd_pref(config_hash, XML_CONFIG_ATTR_FORCE_QUIT); value 745 daemons/controld/controld_control.c shutdown_escalation_timer->period_ms = crm_parse_interval_spec(value); value 749 daemons/controld/controld_control.c value = crmd_pref(config_hash, XML_CONFIG_ATTR_ELECTION_FAIL); value 750 daemons/controld/controld_control.c controld_set_election_period(value); value 752 daemons/controld/controld_control.c value = crmd_pref(config_hash, XML_CONFIG_ATTR_RECHECK); value 753 daemons/controld/controld_control.c recheck_interval_ms = crm_parse_interval_spec(value); value 756 daemons/controld/controld_control.c value = crmd_pref(config_hash, "transition-delay"); value 757 daemons/controld/controld_control.c transition_timer->period_ms = crm_parse_interval_spec(value); value 759 daemons/controld/controld_control.c value = crmd_pref(config_hash, "join-integration-timeout"); value 760 daemons/controld/controld_control.c integration_timer->period_ms = crm_parse_interval_spec(value); value 762 daemons/controld/controld_control.c value = crmd_pref(config_hash, "join-finalization-timeout"); value 763 daemons/controld/controld_control.c finalization_timer->period_ms = crm_parse_interval_spec(value); value 765 daemons/controld/controld_control.c value = crmd_pref(config_hash, XML_CONFIG_ATTR_SHUTDOWN_LOCK); value 766 daemons/controld/controld_control.c controld_shutdown_lock_enabled = crm_is_true(value); value 771 daemons/controld/controld_control.c value = g_hash_table_lookup(config_hash, "cluster-name"); value 772 daemons/controld/controld_control.c if (value) { value 773 daemons/controld/controld_control.c fsa_cluster_name = strdup(value); value 830 daemons/controld/controld_control.c const char *value = crmd_pref(NULL, XML_CONFIG_ATTR_FORCE_QUIT); value 832 daemons/controld/controld_control.c shutdown_escalation_timer->period_ms = crm_parse_interval_spec(value); value 59 daemons/controld/controld_election.c controld_set_election_period(const char *value) value 61 daemons/controld/controld_election.c election_timeout_set_period(fsa_election, crm_parse_interval_spec(value)); value 38 daemons/controld/controld_execd.c static gboolean stop_recurring_actions(gpointer key, gpointer value, gpointer user_data); value 71 daemons/controld/controld_execd.c copy_instance_keys(gpointer key, gpointer value, gpointer user_data) value 74 daemons/controld/controld_execd.c g_hash_table_replace(user_data, strdup((const char *)key), strdup((const char *)value)); value 79 daemons/controld/controld_execd.c copy_meta_keys(gpointer key, gpointer value, gpointer user_data) value 82 daemons/controld/controld_execd.c g_hash_table_replace(user_data, strdup((const char *)key), strdup((const char *)value)); value 923 daemons/controld/controld_execd.c lrm_remove_deleted_rsc(gpointer key, gpointer value, gpointer user_data) value 926 daemons/controld/controld_execd.c struct pending_deletion_op_s *op = value; value 936 daemons/controld/controld_execd.c lrm_remove_deleted_op(gpointer key, gpointer value, gpointer user_data) value 939 daemons/controld/controld_execd.c active_op_t *pending = value; value 1203 daemons/controld/controld_execd.c cancel_action_by_key(gpointer key, gpointer value, gpointer user_data) value 1207 daemons/controld/controld_execd.c active_op_t *op = value; value 1895 daemons/controld/controld_execd.c char *value = NULL; value 1901 daemons/controld/controld_execd.c while (g_hash_table_iter_next(&iter, (gpointer *) &key, (gpointer *) &value)) { value 1903 daemons/controld/controld_execd.c g_hash_table_replace(params, key, value); value 1910 daemons/controld/controld_execd.c while (g_hash_table_iter_next(&iter, (gpointer *) &key, (gpointer *) &value)) { value 1911 daemons/controld/controld_execd.c g_hash_table_replace(params, crm_meta_name(key), strdup(value)); value 1914 daemons/controld/controld_execd.c op->timeout = crm_parse_int(value, "0"); value 1916 daemons/controld/controld_execd.c op->start_delay = crm_parse_int(value, "0"); value 1924 daemons/controld/controld_execd.c while (g_hash_table_iter_next(&iter, (gpointer *) &key, (gpointer *) &value)) { value 1926 daemons/controld/controld_execd.c g_hash_table_replace(params, key, value); value 2150 daemons/controld/controld_execd.c stop_recurring_action_by_rsc(gpointer key, gpointer value, gpointer user_data) value 2154 daemons/controld/controld_execd.c active_op_t *op = value; value 2167 daemons/controld/controld_execd.c stop_recurring_actions(gpointer key, gpointer value, gpointer user_data) value 2171 daemons/controld/controld_execd.c active_op_t *op = value; value 2320 daemons/controld/controld_execd.c char *value = NULL; value 2324 daemons/controld/controld_execd.c while (g_hash_table_iter_next(&iter, (gpointer *) & key, (gpointer *) & value)) { value 2325 daemons/controld/controld_execd.c params = lrmd_key_value_add(params, key, value); value 27 daemons/controld/controld_execd_state.c free_rsc_info(gpointer value) value 29 daemons/controld/controld_execd_state.c lrmd_rsc_info_t *rsc_info = value; value 35 daemons/controld/controld_execd_state.c free_deletion_op(gpointer value) value 37 daemons/controld/controld_execd_state.c struct pending_deletion_op_s *op = value; value 45 daemons/controld/controld_execd_state.c free_recurring_op(gpointer value) value 47 daemons/controld/controld_execd_state.c active_op_t *op = value; value 60 daemons/controld/controld_execd_state.c fail_pending_op(gpointer key, gpointer value, gpointer user_data) value 64 daemons/controld/controld_execd_state.c active_op_t *op = value; value 147 daemons/controld/controld_execd_state.c remote_proxy_remove_by_node(gpointer key, gpointer value, gpointer user_data) value 149 daemons/controld/controld_execd_state.c remote_proxy_t *proxy = value; value 39 daemons/controld/controld_fencing.c update_stonith_max_attempts(const char *value) value 41 daemons/controld/controld_fencing.c if (pcmk__str_eq(value, CRM_INFINITY_S, pcmk__str_casei)) { value 44 daemons/controld/controld_fencing.c stonith_max_attempts = (unsigned long int) crm_parse_ll(value, NULL); value 68 daemons/controld/controld_fencing.c struct st_fail_rec *value = NULL; value 77 daemons/controld/controld_fencing.c (gpointer *) &value)) { value 79 daemons/controld/controld_fencing.c if (value->count >= stonith_max_attempts) { value 85 daemons/controld/controld_fencing.c value = g_hash_table_lookup(stonith_failures, target); value 86 daemons/controld/controld_fencing.c if ((value != NULL) && (value->count >= stonith_max_attempts)) { value 94 daemons/controld/controld_fencing.c value->count, target); value 759 daemons/controld/controld_fencing.c const char *value = NULL; value 765 daemons/controld/controld_fencing.c value = crm_meta_value(action->params, XML_OP_ATTR_DIGESTS_ALL); value 766 daemons/controld/controld_fencing.c update_attrd(target, CRM_ATTR_DIGESTS_ALL, value, NULL, FALSE); value 768 daemons/controld/controld_fencing.c value = crm_meta_value(action->params, XML_OP_ATTR_DIGESTS_SECURE); value 769 daemons/controld/controld_fencing.c update_attrd(target, CRM_ATTR_DIGESTS_SECURE, value, NULL, FALSE); value 21 daemons/controld/controld_fencing.h void update_stonith_max_attempts(const char* value); value 24 daemons/controld/controld_join_dc.c void finalize_join_for(gpointer key, gpointer value, gpointer user_data); value 118 daemons/controld/controld_join_dc.c join_make_offer(gpointer key, gpointer value, gpointer user_data) value 121 daemons/controld/controld_join_dc.c crm_node_t *member = (crm_node_t *)value; value 616 daemons/controld/controld_join_dc.c finalize_join_for(gpointer key, gpointer value, gpointer user_data) value 620 daemons/controld/controld_join_dc.c crm_node_t *join_node = value; value 32 daemons/controld/controld_membership.c reap_dead_nodes(gpointer key, gpointer value, gpointer user_data) value 34 daemons/controld/controld_membership.c crm_node_t *node = value; value 130 daemons/controld/controld_membership.c const char *value = NULL; value 161 daemons/controld/controld_membership.c value = OFFLINESTATUS; value 163 daemons/controld/controld_membership.c value = ONLINESTATUS; value 165 daemons/controld/controld_membership.c crm_xml_add(node_state, XML_NODE_IS_PEER, value); value 170 daemons/controld/controld_membership.c value = CRMD_JOINSTATE_DOWN; value 172 daemons/controld/controld_membership.c value = CRMD_JOINSTATE_MEMBER; value 174 daemons/controld/controld_membership.c crm_xml_add(node_state, XML_NODE_JOIN_STATE, value); value 758 daemons/controld/controld_messages.c const char *value = NULL; value 764 daemons/controld/controld_messages.c value = crm_element_value(msg, F_CRM_SYS_TO); value 765 daemons/controld/controld_messages.c crm_xml_add(ping, XML_PING_ATTR_SYSFROM, value); value 768 daemons/controld/controld_messages.c value = fsa_state2string(fsa_state); value 769 daemons/controld/controld_messages.c crm_xml_add(ping, XML_PING_ATTR_CRMDSTATE, value); value 770 daemons/controld/controld_messages.c crm_notice("Current ping state: %s", value); // CTS needs this value 834 daemons/controld/controld_messages.c const char *value = NULL; value 852 daemons/controld/controld_messages.c value = crm_element_value(msg, XML_ATTR_UNAME); value 855 daemons/controld/controld_messages.c if ((node_id == 0) && (value == NULL)) { value 856 daemons/controld/controld_messages.c value = fsa_our_uname; value 859 daemons/controld/controld_messages.c node = crm_find_peer_full(node_id, value, CRM_GET_PEER_ANY); value 149 daemons/controld/controld_metadata.c const char *value; value 165 daemons/controld/controld_metadata.c value = crm_element_value(param_xml, "unique"); value 166 daemons/controld/controld_metadata.c if (crm_is_true(value)) { value 170 daemons/controld/controld_metadata.c value = crm_element_value(param_xml, "private"); value 171 daemons/controld/controld_metadata.c if (crm_is_true(value)) { value 387 daemons/controld/controld_remote_ra.c g_hash_table_insert(op.params, strdup(tmp->key), strdup(tmp->value)); value 741 daemons/controld/controld_remote_ra.c server = tmp->value; value 743 daemons/controld/controld_remote_ra.c port = atoi(tmp->value); value 96 daemons/controld/controld_te_actions.c const char *value = NULL; value 127 daemons/controld/controld_te_actions.c value = crm_meta_value(action->params, XML_ATTR_TE_NOWAIT); value 128 daemons/controld/controld_te_actions.c if (crm_is_true(value)) { value 283 daemons/controld/controld_te_actions.c const char *value = NULL; value 315 daemons/controld/controld_te_actions.c value = crm_meta_value(action->params, XML_ATTR_TE_NOWAIT); value 316 daemons/controld/controld_te_actions.c if (crm_is_true(value)) { value 92 daemons/controld/controld_te_callbacks.c const char *value = NULL; value 95 daemons/controld/controld_te_callbacks.c value = crm_element_value(attr, XML_NVPAIR_ATTR_VALUE); value 98 daemons/controld/controld_te_callbacks.c if (crm_is_true(value) == FALSE) { value 119 daemons/controld/controld_te_events.c const char *value = NULL; value 148 daemons/controld/controld_te_events.c value = failed_start_offset; value 155 daemons/controld/controld_te_events.c value = failed_stop_offset; value 159 daemons/controld/controld_te_events.c if (!pcmk_str_is_infinity(value)) { value 160 daemons/controld/controld_te_events.c value = XML_NVPAIR_ATTR_VALUE "++"; value 174 daemons/controld/controld_te_events.c rsc_id, on_uname, task, rc, value, now); value 179 daemons/controld/controld_te_events.c update_attrd(on_uname, attr_name, value, NULL, is_remote_node); value 142 daemons/controld/controld_transition.c const char *value = NULL; value 193 daemons/controld/controld_transition.c value = crm_element_value(graph_data, "failed-stop-offset"); value 194 daemons/controld/controld_transition.c if (value) { value 196 daemons/controld/controld_transition.c failed_stop_offset = strdup(value); value 199 daemons/controld/controld_transition.c value = crm_element_value(graph_data, "failed-start-offset"); value 200 daemons/controld/controld_transition.c if (value) { value 202 daemons/controld/controld_transition.c failed_start_offset = strdup(value); value 86 daemons/controld/controld_utils.h void update_attrd(const char *host, const char *name, const char *value, const char *user_name, gboolean is_remote_node); value 35 daemons/controld/pacemaker-controld.h void controld_set_election_period(const char *value); value 493 daemons/execd/cts-exec-helper.c char *value = NULL; value 496 daemons/execd/cts-exec-helper.c while (g_hash_table_iter_next(&iter, (gpointer *) & key, (gpointer *) & value)) { value 497 daemons/execd/cts-exec-helper.c options.params = lrmd_key_value_add(options.params, key, value); value 504 daemons/execd/cts-exec-helper.c char *value = NULL; value 507 daemons/execd/cts-exec-helper.c while (g_hash_table_iter_next(&iter, (gpointer *) & key, (gpointer *) & value)) { value 510 daemons/execd/cts-exec-helper.c options.params = lrmd_key_value_add(options.params, crm_name, value); value 500 daemons/execd/execd_commands.c send_client_notify(gpointer key, gpointer value, gpointer user_data) value 503 daemons/execd/execd_commands.c pcmk__client_t *client = value; value 608 daemons/execd/execd_commands.c char *value = NULL; value 614 daemons/execd/execd_commands.c while (g_hash_table_iter_next(&iter, (gpointer *) & key, (gpointer *) & value)) { value 615 daemons/execd/execd_commands.c hash2smartfield((gpointer) key, (gpointer) value, args); value 821 daemons/execd/execd_commands.c notify_one_client(gpointer key, gpointer value, gpointer user_data) value 823 daemons/execd/execd_commands.c pcmk__client_t *client = value; value 1217 daemons/execd/execd_commands.c char *value = NULL; value 1226 daemons/execd/execd_commands.c while (g_hash_table_iter_next(&iter, (gpointer *) & key, (gpointer *) & value)) { value 1227 daemons/execd/execd_commands.c device_params = stonith_key_value_add(device_params, key, value); value 129 daemons/execd/pacemaker-execd.c const char *value = crm_element_value(request, F_LRMD_CLIENTNAME); value 131 daemons/execd/pacemaker-execd.c if (value == NULL) { value 134 daemons/execd/pacemaker-execd.c client->name = strdup(value); value 110 daemons/execd/remoted_pidone.c char *value = NULL; value 123 daemons/execd/remoted_pidone.c value = end; value 138 daemons/execd/remoted_pidone.c value = NULL; value 152 daemons/execd/remoted_pidone.c value = NULL; value 162 daemons/execd/remoted_pidone.c if (value) { value 175 daemons/execd/remoted_pidone.c setenv(name, value, 0); value 178 daemons/execd/remoted_pidone.c value = NULL; value 183 daemons/execd/remoted_pidone.c if ((value == NULL) && (strchr(line, '\n') == NULL)) { value 186 daemons/execd/remoted_pidone.c value = NULL; // Don't care, make compiler happy value 114 daemons/execd/remoted_tls.c const char *value = crm_element_value(request, F_LRMD_CLIENTNAME); value 116 daemons/execd/remoted_tls.c if (value) { value 117 daemons/execd/remoted_tls.c client->name = strdup(value); value 124 daemons/fenced/fenced_commands.c const char *value = NULL; value 131 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, STONITH_ATTR_DELAY_MAX); value 132 daemons/fenced/fenced_commands.c if (value) { value 133 daemons/fenced/fenced_commands.c delay_max = crm_parse_interval_spec(value) / 1000; value 142 daemons/fenced/fenced_commands.c const char *value = NULL; value 149 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, STONITH_ATTR_DELAY_BASE); value 150 daemons/fenced/fenced_commands.c if (value) { value 151 daemons/fenced/fenced_commands.c delay_base = crm_parse_interval_spec(value) / 1000; value 182 daemons/fenced/fenced_commands.c const char *value = NULL; value 196 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, buffer); value 197 daemons/fenced/fenced_commands.c if (value) { value 198 daemons/fenced/fenced_commands.c return atoi(value); value 269 daemons/fenced/fenced_commands.c const char *value = NULL; value 272 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, STONITH_ATTR_ACTION_LIMIT); value 273 daemons/fenced/fenced_commands.c if (value) { value 274 daemons/fenced/fenced_commands.c action_limit = crm_parse_int(value, "1"); value 625 daemons/fenced/fenced_commands.c char *value = NULL; value 627 daemons/fenced/fenced_commands.c value = calloc(1, 1 + lpc - last); value 628 daemons/fenced/fenced_commands.c memcpy(value, hostmap + last, lpc - last); value 630 daemons/fenced/fenced_commands.c crm_debug("Adding alias '%s'='%s'", name, value); value 631 daemons/fenced/fenced_commands.c g_hash_table_replace(aliases, name, value); value 633 daemons/fenced/fenced_commands.c *targets = g_list_append(*targets, strdup(value)); value 635 daemons/fenced/fenced_commands.c value = NULL; value 823 daemons/fenced/fenced_commands.c map_action(GHashTable *params, const char *action, const char *value) value 829 daemons/fenced/fenced_commands.c STONITH_ATTR_ACTION_OP, value, key); value 833 daemons/fenced/fenced_commands.c STONITH_ATTR_ACTION_OP, value, key, value); value 834 daemons/fenced/fenced_commands.c g_hash_table_insert(params, key, strdup(value)); value 849 daemons/fenced/fenced_commands.c const char *value; value 855 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(params, STONITH_ATTR_ACTION_OP); value 856 daemons/fenced/fenced_commands.c if (value != NULL) { value 860 daemons/fenced/fenced_commands.c if (*value == '\0') { value 863 daemons/fenced/fenced_commands.c } else if (strcmp(value, "reboot") == 0) { value 867 daemons/fenced/fenced_commands.c } else if (strcmp(value, "off") == 0) { value 868 daemons/fenced/fenced_commands.c map_action(params, "reboot", value); value 871 daemons/fenced/fenced_commands.c map_action(params, "off", value); value 872 daemons/fenced/fenced_commands.c map_action(params, "reboot", value); value 884 daemons/fenced/fenced_commands.c const char *value; value 900 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, STONITH_ATTR_HOSTLIST); value 901 daemons/fenced/fenced_commands.c if (value) { value 902 daemons/fenced/fenced_commands.c device->targets = stonith__parse_targets(value); value 905 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, STONITH_ATTR_HOSTMAP); value 906 daemons/fenced/fenced_commands.c device->aliases = build_port_aliases(value, &(device->targets)); value 915 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, "nodeid"); value 916 daemons/fenced/fenced_commands.c if (!value) { value 920 daemons/fenced/fenced_commands.c value = crm_element_value(dev, "rsc_provides"); value 921 daemons/fenced/fenced_commands.c if (pcmk__str_eq(value, "unfencing", pcmk__str_casei)) { value 1002 daemons/fenced/fenced_commands.c const char *value = g_list_nth_data(list, lpc); value 1004 daemons/fenced/fenced_commands.c if (pcmk__str_eq(item, value, pcmk__str_casei)) { value 1007 daemons/fenced/fenced_commands.c crm_trace("%d: '%s' != '%s'", lpc, item, value); value 1101 daemons/fenced/fenced_commands.c char *value = NULL; value 1105 daemons/fenced/fenced_commands.c while (g_hash_table_iter_next(&gIter, (void **)&key, (void **)&value)) { value 1114 daemons/fenced/fenced_commands.c if (!other_value || !pcmk__str_eq(other_value, value, pcmk__str_casei)) { value 1115 daemons/fenced/fenced_commands.c crm_trace("Different value for %s: %s != %s", key, other_value, value); value 1304 daemons/fenced/fenced_commands.c const char *value = crm_element_value(level, XML_ATTR_STONITH_TARGET_VALUE); value 1306 daemons/fenced/fenced_commands.c if(name && value) { value 1307 daemons/fenced/fenced_commands.c return crm_strdup_printf("%s=%s", name, value); value 1444 daemons/fenced/fenced_commands.c const char *device = dIter->value; value 1711 daemons/fenced/fenced_commands.c search_devices(gpointer key, gpointer value, gpointer user_data) value 1713 daemons/fenced/fenced_commands.c stonith_device_t *dev = value; value 2365 daemons/fenced/fenced_commands.c const char *value = NULL; value 2380 daemons/fenced/fenced_commands.c value = crm_element_value(request, name); value 2381 daemons/fenced/fenced_commands.c crm_xml_add(reply, name, value); value 67 daemons/fenced/fenced_history.c gpointer value, value 70 daemons/fenced/fenced_history.c remote_fencing_op_t *op = value; value 131 daemons/fenced/fenced_remote.c count_peer_device(gpointer key, gpointer value, gpointer user_data) value 133 daemons/fenced/fenced_remote.c device_properties_t *props = (device_properties_t*)value; value 1316 daemons/fenced/fenced_remote.c add_device_timeout(gpointer key, gpointer value, gpointer user_data) value 1319 daemons/fenced/fenced_remote.c device_properties_t *props = value; value 114 daemons/fenced/pacemaker-fenced.c const char *value = crm_element_value(request, F_STONITH_CLIENTNAME); value 116 daemons/fenced/pacemaker-fenced.c if (value == NULL) { value 117 daemons/fenced/pacemaker-fenced.c value = "unknown"; value 119 daemons/fenced/pacemaker-fenced.c c->name = crm_strdup_printf("%s.%u", value, c->pid); value 287 daemons/fenced/pacemaker-fenced.c stonith_notify_client(gpointer key, gpointer value, gpointer user_data) value 291 daemons/fenced/pacemaker-fenced.c pcmk__client_t *client = value; value 582 daemons/fenced/pacemaker-fenced.c const char *value = NULL; value 659 daemons/fenced/pacemaker-fenced.c while (g_hash_table_iter_next(&gIter, (gpointer *) & name, (gpointer *) & value)) { value 660 daemons/fenced/pacemaker-fenced.c if (!name || !value) { value 663 daemons/fenced/pacemaker-fenced.c params = stonith_key_value_add(params, name, value); value 664 daemons/fenced/pacemaker-fenced.c crm_trace(" %s=%s", name, value); value 871 daemons/fenced/pacemaker-fenced.c node_has_attr(const char *node, const char *name, const char *value) value 887 daemons/fenced/pacemaker-fenced.c node, name, value); value 1063 daemons/fenced/pacemaker-fenced.c const char *value = NULL; value 1068 daemons/fenced/pacemaker-fenced.c value = crm_element_value(stonith_watchdog_xml, XML_NVPAIR_ATTR_VALUE); value 1071 daemons/fenced/pacemaker-fenced.c if(value) { value 1072 daemons/fenced/pacemaker-fenced.c timeout_ms = crm_get_msec(value); value 263 daemons/fenced/pacemaker-fenced.h gboolean node_has_attr(const char *node, const char *name, const char *value); value 518 daemons/pacemakerd/pacemakerd.c const char *value = NULL; value 529 daemons/pacemakerd/pacemakerd.c value = crm_element_value(msg, F_CRM_SYS_TO); value 530 daemons/pacemakerd/pacemakerd.c crm_xml_add(ping, XML_PING_ATTR_SYSFROM, value); value 179 daemons/pacemakerd/pcmkd_corosync.c get_config_opt(uint64_t unused, cmap_handle_t object_handle, const char *key, char **value, value 184 daemons/pacemakerd/pcmkd_corosync.c cs_repeat(retries, 5, rc = cmap_get_string(object_handle, key, value)); value 188 daemons/pacemakerd/pcmkd_corosync.c *value = strdup(fallback); value 190 daemons/pacemakerd/pcmkd_corosync.c *value = NULL; value 193 daemons/pacemakerd/pcmkd_corosync.c crm_trace("%s: %s", key, *value); value 84 daemons/schedulerd/pacemaker-schedulerd.c const char *value = NULL; value 129 daemons/schedulerd/pacemaker-schedulerd.c value = pe_pref(sched_data_set->config_hash, series[series_id].param); value 131 daemons/schedulerd/pacemaker-schedulerd.c if (value != NULL) { value 132 daemons/schedulerd/pacemaker-schedulerd.c series_wrap = (int) crm_parse_ll(value, NULL); value 148 daemons/schedulerd/pacemaker-schedulerd.c series[series_id].name, series_wrap, seq, value); value 43 include/crm/cib/util.h gboolean to_console, char **value, const char *user_name); value 76 include/crm/common/alerts_internal.h const char *value); value 78 include/crm/common/alerts_internal.h int value); value 33 include/crm/common/attrd_internal.h const char *name, const char *value, value 77 include/crm/common/iso8601.h crm_time_t *crm_time_calculate_duration(crm_time_t * dt, crm_time_t * value); value 100 include/crm/common/iso8601.h crm_time_t *crm_time_add(crm_time_t * dt, crm_time_t * value); value 101 include/crm/common/iso8601.h crm_time_t *crm_time_subtract(crm_time_t * dt, crm_time_t * value); value 104 include/crm/common/iso8601.h void crm_time_add_seconds(crm_time_t * dt, int value); value 105 include/crm/common/iso8601.h void crm_time_add_minutes(crm_time_t * dt, int value); value 106 include/crm/common/iso8601.h void crm_time_add_hours(crm_time_t * dt, int value); value 107 include/crm/common/iso8601.h void crm_time_add_days(crm_time_t * dt, int value); value 108 include/crm/common/iso8601.h void crm_time_add_weeks(crm_time_t * dt, int value); value 109 include/crm/common/iso8601.h void crm_time_add_months(crm_time_t * dt, int value); value 110 include/crm/common/iso8601.h void crm_time_add_years(crm_time_t * dt, int value); value 30 include/crm/common/nvpair.h char *value; value 33 include/crm/common/nvpair.h GSList *pcmk_prepend_nvpair(GSList *nvpairs, const char *name, const char *value); value 40 include/crm/common/nvpair.h const char *name, const char *value); value 41 include/crm/common/nvpair.h void hash2nvpair(gpointer key, gpointer value, gpointer user_data); value 42 include/crm/common/nvpair.h void hash2field(gpointer key, gpointer value, gpointer user_data); value 43 include/crm/common/nvpair.h void hash2metafield(gpointer key, gpointer value, gpointer user_data); value 44 include/crm/common/nvpair.h void hash2smartfield(gpointer key, gpointer value, gpointer user_data); value 47 include/crm/common/nvpair.h const char *crm_xml_add(xmlNode *node, const char *name, const char *value); value 48 include/crm/common/nvpair.h const char *crm_xml_replace(xmlNode *node, const char *name, const char *value); value 49 include/crm/common/nvpair.h const char *crm_xml_add_int(xmlNode *node, const char *name, int value); value 50 include/crm/common/nvpair.h const char *crm_xml_add_ll(xmlNode *node, const char *name, long long value); value 54 include/crm/common/nvpair.h const struct timeval *value); value 77 include/crm/common/nvpair.h const char *value = crm_element_value(obj1, element); value 79 include/crm/common/nvpair.h crm_xml_add(obj2, element, value); value 80 include/crm/common/nvpair.h return value; value 96 include/crm/common/nvpair.h crm_xml_add_boolean(xmlNode *node, const char *name, gboolean value) value 98 include/crm/common/nvpair.h return crm_xml_add(node, name, (value? "true" : "false")); value 74 include/crm/common/options_internal.h void pcmk__set_env_option(const char *option, const char *value); value 108 include/crm/common/options_internal.h bool pcmk__valid_interval_spec(const char *value); value 109 include/crm/common/options_internal.h bool pcmk__valid_boolean(const char *value); value 110 include/crm/common/options_internal.h bool pcmk__valid_number(const char *value); value 111 include/crm/common/options_internal.h bool pcmk__valid_positive_number(const char *value); value 112 include/crm/common/options_internal.h bool pcmk__valid_quorum(const char *value); value 113 include/crm/common/options_internal.h bool pcmk__valid_script(const char *value); value 114 include/crm/common/options_internal.h bool pcmk__valid_utilization(const char *value); value 120 include/crm/common/options_internal.h bool pcmk__valid_sbd_timeout(const char *value); value 41 include/crm/common/util.h int pcmk_scan_nvpair(const char *input, char **name, char **value); value 42 include/crm/common/util.h char *pcmk_format_nvpair(const char *name, const char *value, const char *units); value 68 include/crm/common/xml.h void expand_plus_plus(xmlNode * target, const char *name, const char *value); value 160 include/crm/common/xml.h const char *tag, const char *field, const char *value, value 74 include/crm/fencing/internal.h const char *attr, const char *value, value 30 include/crm/lrmd.h char *value; value 168 include/crm/lrmd.h lrmd_key_value_t *lrmd_key_value_add(lrmd_key_value_t * kvp, const char *key, const char *value); value 215 include/crm/pengine/internal.h void add_hash_param(GHashTable * hash, const char *name, const char *value); value 383 include/crm/pengine/internal.h extern void print_str_str(gpointer key, gpointer value, gpointer user_data); value 94 include/crm/stonith-ng.h char *value; value 349 include/crm/stonith-ng.h const char *attr, const char *value, int level); value 369 include/crm/stonith-ng.h const char *attr, const char *value, value 438 include/crm/stonith-ng.h const char *value); value 37 include/portability.h int setenv(const char *name, const char *value, int why); value 51 lib/cib/cib_attrs.c char **value, const char *user_name) value 67 lib/cib/cib_attrs.c CRM_ASSERT(value != NULL); value 68 lib/cib/cib_attrs.c *value = NULL; value 158 lib/cib/cib_attrs.c *value = strdup(tmp); value 294 lib/cib/cib_client.c const char *value = getenv("CIB_shadow"); value 296 lib/cib/cib_client.c if (value && value[0] != 0) { value 297 lib/cib/cib_client.c return cib_shadow_new(value); value 300 lib/cib/cib_client.c value = getenv("CIB_file"); value 301 lib/cib/cib_client.c if (value) { value 302 lib/cib/cib_client.c return cib_file_new(value); value 305 lib/cib/cib_client.c value = getenv("CIB_port"); value 306 lib/cib/cib_client.c if (value) { value 308 lib/cib/cib_client.c int port = crm_parse_int(value, NULL); value 313 lib/cib/cib_client.c value = getenv("CIB_encrypted"); value 314 lib/cib/cib_client.c if (value && crm_is_true(value) == FALSE) { value 664 lib/cib/cib_client.c cib_dump_pending_op(gpointer key, gpointer value, gpointer user_data) value 667 lib/cib/cib_client.c cib_callback_client_t *blob = value; value 101 lib/cib/cib_ops.c const char *value = crm_element_value(existing_cib, XML_ATTR_VALIDATION); value 106 lib/cib/cib_ops.c if (value != NULL) { value 107 lib/cib/cib_ops.c current_version = get_schema_version(value); value 192 lib/cib/cib_utils.c const char *value = NULL; value 196 lib/cib/cib_utils.c value = cib_pref(options, "enable-acl"); value 197 lib/cib/cib_utils.c rc = crm_is_true(value); value 455 lib/cluster/cpg.c groupName->value, counter, peer_name(peer), value 464 lib/cluster/cpg.c groupName->value, counter, value 469 lib/cluster/cpg.c groupName->value, counter, peer_name(peer), value 479 lib/cluster/cpg.c groupName->value, counter, joined_list[i].nodeid, value 490 lib/cluster/cpg.c groupName->value, counter, member_list[i].pid); value 494 lib/cluster/cpg.c groupName->value, counter, peer_name(peer), value 520 lib/cluster/cpg.c member_list[i].nodeid, groupName->value); value 531 lib/cluster/cpg.c crm_err("Local node was evicted from group %s", groupName->value); value 567 lib/cluster/cpg.c cluster->group.value[0] = 0; value 570 lib/cluster/cpg.c strncpy(cluster->group.value, message_name, 127); value 571 lib/cluster/cpg.c cluster->group.value[127] = 0; value 572 lib/cluster/cpg.c cluster->group.length = 1 + QB_MIN(127, strlen(cluster->group.value)); value 201 lib/cluster/membership.c mark_dirty(gpointer key, gpointer value, gpointer user_data) value 203 lib/cluster/membership.c pcmk__set_peer_flags((crm_node_t *) value, crm_node_dirty); value 207 lib/cluster/membership.c is_dirty(gpointer key, gpointer value, gpointer user_data) value 209 lib/cluster/membership.c return pcmk_is_set(((crm_node_t*)value)->flags, crm_node_dirty); value 293 lib/cluster/membership.c crm_reap_dead_member(gpointer key, gpointer value, gpointer user_data) value 295 lib/cluster/membership.c crm_node_t *node = value; value 307 lib/cluster/membership.c } else if (crm_is_peer_active(value) == FALSE) { value 354 lib/cluster/membership.c crm_count_peer(gpointer key, gpointer value, gpointer user_data) value 357 lib/cluster/membership.c crm_node_t *node = value; value 475 lib/cluster/membership.c static gboolean crm_hash_find_by_data(gpointer key, gpointer value, gpointer user_data) value 477 lib/cluster/membership.c if(value == user_data) { value 154 lib/common/alerts.c const char *value) value 157 lib/common/alerts.c crm_trace("Inserting alert key %s = '%s'", *key, value); value 158 lib/common/alerts.c if (value) { value 159 lib/common/alerts.c g_hash_table_insert(table, strdup(*key), strdup(value)); value 168 lib/common/alerts.c int value) value 171 lib/common/alerts.c crm_trace("Inserting alert key %s = %d", *key, value); value 172 lib/common/alerts.c g_hash_table_insert(table, strdup(*key), crm_itoa(value)); value 136 lib/common/attrd_client.c const char *name, const char *value, value 201 lib/common/attrd_client.c crm_xml_add(update, PCMK__XA_ATTR_VALUE, value); value 221 lib/common/attrd_client.c name, value, display_host, pcmk_rc_str(rc), rc); value 27 lib/common/cib_secrets.c static bool check_md5_hash(char *hash, char *value); value 28 lib/common/cib_secrets.c static void add_secret_params(gpointer key, gpointer value, gpointer user_data); value 41 lib/common/cib_secrets.c check_md5_hash(char *hash, char *value) value 46 lib/common/cib_secrets.c hash2 = crm_md5sum(value); value 185 lib/common/cib_secrets.c add_secret_params(gpointer key, gpointer value, gpointer user_data) value 189 lib/common/cib_secrets.c if (is_magic_value((char *)value)) { value 168 lib/common/ipc_controld.c const char *value = NULL; value 184 lib/common/ipc_controld.c value = crm_element_value(reply, F_CRM_MSG_TYPE); value 185 lib/common/ipc_controld.c if ((value == NULL) || (strcmp(value, XML_ATTR_REQUEST) value 186 lib/common/ipc_controld.c && strcmp(value, XML_ATTR_RESPONSE))) { value 188 lib/common/ipc_controld.c crm_str(value)); value 199 lib/common/ipc_controld.c value = crm_element_value(reply, F_CRM_TASK); value 200 lib/common/ipc_controld.c if (value == NULL) { value 212 lib/common/ipc_controld.c if (!strcmp(value, CRM_OP_REPROBE)) { value 215 lib/common/ipc_controld.c } else if (!strcmp(value, CRM_OP_NODE_INFO)) { value 218 lib/common/ipc_controld.c } else if (!strcmp(value, CRM_OP_INVOKE_LRM)) { value 222 lib/common/ipc_controld.c } else if (!strcmp(value, CRM_OP_PING)) { value 225 lib/common/ipc_controld.c } else if (!strcmp(value, PCMK__CONTROLD_CMD_NODES)) { value 230 lib/common/ipc_controld.c value); value 238 lib/common/ipc_controld.c if (pcmk__str_eq(value, PCMK__CONTROLD_CMD_NODES, pcmk__str_casei)) { value 144 lib/common/ipc_pacemakerd.c const char *value = NULL; value 147 lib/common/ipc_pacemakerd.c value = crm_element_value(reply, F_CRM_MSG_TYPE); value 148 lib/common/ipc_pacemakerd.c if ((value == NULL) || (strcmp(value, XML_ATTR_RESPONSE))) { value 150 lib/common/ipc_pacemakerd.c crm_str(value)); value 161 lib/common/ipc_pacemakerd.c value = crm_element_value(reply, F_CRM_TASK); value 162 lib/common/ipc_pacemakerd.c if ((value == NULL) || strcmp(value, CRM_OP_PING)) { value 163 lib/common/ipc_pacemakerd.c crm_debug("Unrecognizable pacemakerd message: '%s'", crm_str(value)); value 1270 lib/common/iso8601.c crm_time_add(crm_time_t * dt, crm_time_t * value) value 1275 lib/common/iso8601.c if ((dt == NULL) || (value == NULL)) { value 1282 lib/common/iso8601.c utc = crm_get_utc_time(value); value 1298 lib/common/iso8601.c crm_time_calculate_duration(crm_time_t * dt, crm_time_t * value) value 1303 lib/common/iso8601.c if ((dt == NULL) || (value == NULL)) { value 1308 lib/common/iso8601.c utc = crm_get_utc_time(value); value 1332 lib/common/iso8601.c crm_time_subtract(crm_time_t * dt, crm_time_t * value) value 1337 lib/common/iso8601.c if ((dt == NULL) || (value == NULL)) { value 1342 lib/common/iso8601.c utc = crm_get_utc_time(value); value 48 lib/common/nvpair.c pcmk__new_nvpair(const char *name, const char *value) value 58 lib/common/nvpair.c nvpair->value = value? strdup(value) : NULL; value 75 lib/common/nvpair.c free(nvpair->value); value 92 lib/common/nvpair.c pcmk_prepend_nvpair(GSList *nvpairs, const char *name, const char *value) value 94 lib/common/nvpair.c return g_slist_prepend(nvpairs, pcmk__new_nvpair(name, value)); value 192 lib/common/nvpair.c crm_xml_add(parent, pair->name, pair->value); value 221 lib/common/nvpair.c pcmk_scan_nvpair(const char *input, char **name, char **value) value 225 lib/common/nvpair.c *value = NULL; value 226 lib/common/nvpair.c if (sscanf(input, "%m[^=]=%m[^\n]", name, value) <= 0) { value 232 lib/common/nvpair.c *value = NULL; value 249 lib/common/nvpair.c *value = strdup(sep+1); value 251 lib/common/nvpair.c if (*value == NULL) { value 257 lib/common/nvpair.c if (*name != NULL && *value != NULL) { value 259 lib/common/nvpair.c } else if (*name != NULL || *value != NULL) { value 282 lib/common/nvpair.c pcmk_format_nvpair(const char *name, const char *value, const char *units) { value 283 lib/common/nvpair.c return crm_strdup_printf("%s=\"%s%s\"", name, value, units ? units : ""); value 317 lib/common/nvpair.c crm_xml_add(xmlNode *node, const char *name, const char *value) value 325 lib/common/nvpair.c if (value == NULL) { value 335 lib/common/nvpair.c CRM_CHECK(old_value != value, value 336 lib/common/nvpair.c crm_err("Cannot reset %s with crm_xml_add(%s)", name, value); value 337 lib/common/nvpair.c return value); value 344 lib/common/nvpair.c if (old == NULL || value == NULL || strcmp(old, value) != 0) { value 350 lib/common/nvpair.c crm_trace("Cannot add %s=%s to %s", name, value, node->name); value 354 lib/common/nvpair.c attr = xmlSetProp(node, (pcmkXmlStr) name, (pcmkXmlStr) value); value 374 lib/common/nvpair.c crm_xml_replace(xmlNode *node, const char *name, const char *value) value 386 lib/common/nvpair.c CRM_CHECK(old_value != value, return value); value 390 lib/common/nvpair.c crm_trace("Cannot replace %s=%s to %s", name, value, node->name); value 393 lib/common/nvpair.c } else if (old_value && !value) { value 399 lib/common/nvpair.c if (!old_value || !value || !strcmp(old_value, value)) { value 404 lib/common/nvpair.c attr = xmlSetProp(node, (pcmkXmlStr) name, (pcmkXmlStr) value); value 425 lib/common/nvpair.c crm_xml_add_int(xmlNode *node, const char *name, int value) value 427 lib/common/nvpair.c char *number = crm_itoa(value); value 475 lib/common/nvpair.c crm_xml_add_ll(xmlNode *xml, const char *name, long long value) value 479 lib/common/nvpair.c if (snprintf(s, LLSTRSIZE, "%lld", (long long) value) == LLSTRSIZE) { value 500 lib/common/nvpair.c const struct timeval *value) value 504 lib/common/nvpair.c if (xml && name_sec && value) { value 505 lib/common/nvpair.c added = crm_xml_add_ll(xml, name_sec, (long long) value->tv_sec); value 508 lib/common/nvpair.c crm_xml_add_ll(xml, name_usec, (long long) value->tv_usec); value 561 lib/common/nvpair.c const char *value = NULL; value 564 lib/common/nvpair.c value = crm_element_value(data, name); value 565 lib/common/nvpair.c if (value) { value 567 lib/common/nvpair.c *dest = crm_parse_int(value, NULL); value 589 lib/common/nvpair.c const char *value = NULL; value 592 lib/common/nvpair.c value = crm_element_value(data, name); value 593 lib/common/nvpair.c if (value) { value 595 lib/common/nvpair.c *dest = crm_parse_ll(value, NULL); value 617 lib/common/nvpair.c const char *value = NULL; value 623 lib/common/nvpair.c value = crm_element_value(data, name); value 624 lib/common/nvpair.c if (value == NULL) { value 629 lib/common/nvpair.c value_ll = crm_parse_ll(value, NULL); value 729 lib/common/nvpair.c const char *value = crm_element_value(data, name); value 731 lib/common/nvpair.c if (value != NULL) { value 732 lib/common/nvpair.c value_copy = strdup(value); value 751 lib/common/nvpair.c hash2smartfield(gpointer key, gpointer value, gpointer user_data) value 754 lib/common/nvpair.c const char *s_value = value; value 785 lib/common/nvpair.c hash2field(gpointer key, gpointer value, gpointer user_data) value 788 lib/common/nvpair.c const char *s_value = value; value 813 lib/common/nvpair.c hash2metafield(gpointer key, gpointer value, gpointer user_data) value 817 lib/common/nvpair.c if (key == NULL || value == NULL) { value 831 lib/common/nvpair.c hash2field(crm_name, value, user_data); value 849 lib/common/nvpair.c const char *value) value 870 lib/common/nvpair.c crm_xml_add(nvp, XML_NVPAIR_ATTR_VALUE, value); value 886 lib/common/nvpair.c hash2nvpair(gpointer key, gpointer value, gpointer user_data) value 889 lib/common/nvpair.c const char *s_value = value; value 944 lib/common/nvpair.c const char *value = crm_element_value(child, XML_NVPAIR_ATTR_VALUE); value 946 lib/common/nvpair.c crm_trace("Added %s=%s", key, value); value 947 lib/common/nvpair.c if (key != NULL && value != NULL) { value 948 lib/common/nvpair.c g_hash_table_insert(nvpair_hash, strdup(key), strdup(value)); value 288 lib/common/options.c const char *value = NULL; value 291 lib/common/options.c value = getenv(env_name); value 292 lib/common/options.c if (value != NULL) { value 293 lib/common/options.c crm_trace("Found %s = %s", env_name, value); value 294 lib/common/options.c return value; value 298 lib/common/options.c value = getenv(env_name); value 299 lib/common/options.c if (value != NULL) { value 300 lib/common/options.c crm_trace("Found %s = %s", env_name, value); value 301 lib/common/options.c return value; value 318 lib/common/options.c pcmk__set_env_option(const char *option, const char *value) value 323 lib/common/options.c if (value) { value 324 lib/common/options.c crm_trace("Setting %s to %s", env_name, value); value 325 lib/common/options.c setenv(env_name, value, 1); value 332 lib/common/options.c if (value) { value 333 lib/common/options.c crm_trace("Setting %s to %s", env_name, value); value 334 lib/common/options.c setenv(env_name, value, 1); value 357 lib/common/options.c const char *value = pcmk__env_option(option); value 359 lib/common/options.c return (value != NULL) && (crm_is_true(value) || strstr(value, daemon)); value 368 lib/common/options.c pcmk__valid_interval_spec(const char *value) value 370 lib/common/options.c (void) crm_parse_interval_spec(value); value 375 lib/common/options.c pcmk__valid_boolean(const char *value) value 379 lib/common/options.c return crm_str_to_boolean(value, &tmp) == 1; value 383 lib/common/options.c pcmk__valid_number(const char *value) value 385 lib/common/options.c if (value == NULL) { value 388 lib/common/options.c } else if (pcmk_str_is_minus_infinity(value) || value 389 lib/common/options.c pcmk_str_is_infinity(value)) { value 394 lib/common/options.c crm_parse_ll(value, NULL); value 399 lib/common/options.c pcmk__valid_positive_number(const char *value) value 401 lib/common/options.c return pcmk_str_is_infinity(value) || value 402 lib/common/options.c (crm_parse_ll(value, NULL) > 0); value 406 lib/common/options.c pcmk__valid_quorum(const char *value) value 408 lib/common/options.c return pcmk__strcase_any_of(value, "stop", "freeze", "ignore", "demote", "suicide", NULL); value 412 lib/common/options.c pcmk__valid_script(const char *value) value 416 lib/common/options.c if (pcmk__str_eq(value, "/dev/null", pcmk__str_casei)) { value 420 lib/common/options.c if (stat(value, &st) != 0) { value 421 lib/common/options.c crm_err("Script %s does not exist", value); value 426 lib/common/options.c crm_err("Script %s is not a regular file", value); value 431 lib/common/options.c crm_err("Script %s is not executable", value); value 439 lib/common/options.c pcmk__valid_utilization(const char *value) value 442 lib/common/options.c long number = strtol(value, &end, 10); value 467 lib/common/options.c const char *value = NULL; value 473 lib/common/options.c value = g_hash_table_lookup(options, name); value 475 lib/common/options.c if ((value == NULL) && old_name) { value 476 lib/common/options.c value = g_hash_table_lookup(options, old_name); value 477 lib/common/options.c if (value != NULL) { value 484 lib/common/options.c new_value = strdup(value); value 486 lib/common/options.c value = new_value; value 490 lib/common/options.c if (value && validate && (validate(value) == FALSE)) { value 492 lib/common/options.c "because '%s' is invalid", name, value); value 493 lib/common/options.c value = NULL; value 496 lib/common/options.c if (value) { value 497 lib/common/options.c return value; value 502 lib/common/options.c value = def_value; value 504 lib/common/options.c if (value == NULL) { value 511 lib/common/options.c CRM_CHECK(validate(value) != FALSE, value 517 lib/common/options.c value, name); value 519 lib/common/options.c new_value = strdup(value); value 521 lib/common/options.c value = new_value; value 523 lib/common/options.c return value; value 540 lib/common/options.c const char *value = NULL; value 544 lib/common/options.c value = cluster_option_value(options, option_list[lpc].is_valid, value 548 lib/common/options.c return value; value 432 lib/common/output_html.c char *value; value 438 lib/common/output_html.c value = va_arg(ap, char *); value 439 lib/common/output_html.c xmlSetProp(header_node, (pcmkXmlStr) key, (pcmkXmlStr) value); value 92 lib/common/patchset.c const char *value = NULL; value 148 lib/common/patchset.c value = crm_element_value(xml, (const char *) pIter->name); value 149 lib/common/patchset.c crm_xml_add(attr, XML_NVPAIR_ATTR_VALUE, value); value 163 lib/common/patchset.c value = crm_element_value(xml, (const char *) pIter->name); value 164 lib/common/patchset.c crm_xml_add(result, (const char *)pIter->name, value); value 256 lib/common/patchset.c const char *value = crm_element_value(last, vfields[lpc]); value 258 lib/common/patchset.c crm_xml_add(diff_child, vfields[lpc], value); value 260 lib/common/patchset.c crm_xml_add(cib, vfields[lpc], value); value 277 lib/common/patchset.c const char *value = crm_element_value(next, vfields[lpc]); value 279 lib/common/patchset.c crm_xml_add(diff_child, vfields[lpc], value); value 341 lib/common/patchset.c const char *value = crm_element_value(source, vfields[lpc]); value 343 lib/common/patchset.c if (value == NULL) { value 344 lib/common/patchset.c value = "1"; value 346 lib/common/patchset.c crm_xml_add(v, vfields[lpc], value); value 351 lib/common/patchset.c const char *value = crm_element_value(target, vfields[lpc]); value 353 lib/common/patchset.c if (value == NULL) { value 354 lib/common/patchset.c value = "1"; value 356 lib/common/patchset.c crm_xml_add(v, vfields[lpc], value); value 564 lib/common/patchset.c const char *value = crm_element_value(child, "value"); value 572 lib/common/patchset.c name, value); value 651 lib/common/patchset.c const char *value = NULL; value 672 lib/common/patchset.c value = crm_element_value(patch, XML_DIFF_MARKER); value 673 lib/common/patchset.c if ((value != NULL) && (strcmp(value, "removed:top") == 0)) { value 712 lib/common/patchset.c const char *value = NULL; value 721 lib/common/patchset.c value = crm_element_value(patch, XML_DIFF_MARKER); value 722 lib/common/patchset.c if ((target == NULL) && (value != NULL) value 723 lib/common/patchset.c && (strcmp(value, "added:top") == 0)) { value 1226 lib/common/patchset.c const char *value = crm_element_value(attrs, name); value 1228 lib/common/patchset.c crm_xml_add(match, name, value); value 1492 lib/common/patchset.c const char *value = NULL; value 1527 lib/common/patchset.c value = crm_element_value(right, XML_DIFF_MARKER); value 1528 lib/common/patchset.c if ((value != NULL) && (strcmp(value, "removed:top") == 0)) { value 1609 lib/common/patchset.c xmlSetProp(diff, (pcmkXmlStr) prop_name, (pcmkXmlStr) value); value 1051 lib/common/schemas.c char *value = NULL; value 1063 lib/common/schemas.c value = crm_element_value_copy(xml, XML_ATTR_VALIDATION); value 1065 lib/common/schemas.c if (value != NULL) { value 1066 lib/common/schemas.c match = get_schema_version(value); value 1080 lib/common/schemas.c free(value); value 1186 lib/common/schemas.c value ? value : "<none>", known_schemas[*best].name); value 1191 lib/common/schemas.c free(value); value 1199 lib/common/schemas.c const char *value = crm_element_value(*xml, XML_ATTR_VALIDATION); value 1200 lib/common/schemas.c char *const orig_value = strdup(value == NULL ? "(none)" : value); value 1202 lib/common/schemas.c int version = get_schema_version(value); value 1213 lib/common/schemas.c value = crm_element_value(converted, XML_ATTR_VALIDATION); value 1246 lib/common/schemas.c crm_str(value)); value 1253 lib/common/schemas.c crm_str(value)); value 293 lib/common/strings.c const char *value; value 298 lib/common/strings.c value = g_hash_table_lookup(table, key); value 299 lib/common/strings.c if (value == NULL) { value 307 lib/common/strings.c value_ll = crm_parse_ll(value, NULL); value 312 lib/common/strings.c crm_warn("Could not parse non-negative integer from %s", value); value 581 lib/common/strings.c copy_str_table_entry(gpointer key, gpointer value, gpointer user_data) value 583 lib/common/strings.c if (key && value && user_data) { value 584 lib/common/strings.c g_hash_table_insert((GHashTable*)user_data, strdup(key), strdup(value)); value 482 lib/common/utils.c const char *value = NULL; value 486 lib/common/utils.c value = g_hash_table_lookup(hash, key); value 490 lib/common/utils.c return value; value 268 lib/common/watchdog.c pcmk__valid_sbd_timeout(const char *value) value 270 lib/common/watchdog.c long st_timeout = value? crm_get_msec(value) : 0; value 275 lib/common/watchdog.c st_timeout, value); value 280 lib/common/watchdog.c value? value : "default"); value 284 lib/common/watchdog.c "but SBD not active", (value? value : "auto")); value 293 lib/common/watchdog.c "(must be >%ldms)", value, sbd_timeout); value 298 lib/common/watchdog.c value, sbd_timeout); value 564 lib/common/xml.c expand_plus_plus(xmlNode * target, const char *name, const char *value) value 573 lib/common/xml.c if (value == NULL || name == NULL) { value 583 lib/common/xml.c } else if (strstr(value, name) != value) { value 588 lib/common/xml.c value_len = strlen(value); value 590 lib/common/xml.c || value[name_len] != '+' || (value[name_len + 1] != '+' && value[name_len + 1] != '=')) { value 597 lib/common/xml.c if (old_value != value) { value 601 lib/common/xml.c if (value[name_len + 1] != '+') { value 602 lib/common/xml.c const char *offset_s = value + (name_len + 2); value 616 lib/common/xml.c if (old_value == value) { value 620 lib/common/xml.c crm_xml_add(target, name, value); value 1574 lib/common/xml.c const char *value = crm_element_value(data, aname); value 1577 lib/common/xml.c "%s %s @%s=%s", flags, spaces, aname, value); value 1580 lib/common/xml.c const char *value = crm_element_value(data, aname); value 1595 lib/common/xml.c "%s %s @%s=%s", flags, spaces, aname, value); value 2630 lib/common/xml.c const char *tag, const char *field, const char *value, gboolean search_matches) value 2639 lib/common/xml.c } else if (value != NULL && !pcmk__str_eq(value, crm_element_value(root, field), pcmk__str_casei)) { value 2654 lib/common/xml.c match_found += find_xml_children(children, child, tag, field, value, search_matches); value 302 lib/fencing/st_client.c hash2field((gpointer) params->key, (gpointer) params->value, args); value 343 lib/fencing/st_client.c const char *attr, const char *value, int level) value 348 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return -EINVAL); value 361 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_STONITH_TARGET_VALUE, value); value 395 lib/fencing/st_client.c const char *attr, const char *value, value 402 lib/fencing/st_client.c CRM_CHECK(node || pattern || (attr && value), return NULL); value 419 lib/fencing/st_client.c crm_xml_add(data, XML_ATTR_STONITH_TARGET_VALUE, value); value 425 lib/fencing/st_client.c pcmk__add_separated_word(&list, &len, device_list->value, ","); value 437 lib/fencing/st_client.c const char *attr, const char *value, value 441 lib/fencing/st_client.c xmlNode *data = create_level_registration_xml(node, pattern, attr, value, value 460 lib/fencing/st_client.c append_arg(const char *key, const char *value, GHashTable **args) value 463 lib/fencing/st_client.c CRM_CHECK(value != NULL, return); value 479 lib/fencing/st_client.c crm_trace("Appending: %s=%s", key, value); value 480 lib/fencing/st_client.c g_hash_table_replace(*args, strdup(key), strdup(value)); value 484 lib/fencing/st_client.c append_config_arg(gpointer key, gpointer value, gpointer user_data) value 491 lib/fencing/st_client.c append_arg(key, value, user_data); value 503 lib/fencing/st_client.c const char *value = NULL; value 509 lib/fencing/st_client.c value = g_hash_table_lookup(device_args, buffer); value 511 lib/fencing/st_client.c if (value) { value 512 lib/fencing/st_client.c crm_debug("Substituting action '%s' for requested operation '%s'", value, action); value 513 lib/fencing/st_client.c action = value; value 540 lib/fencing/st_client.c value = agent; value 551 lib/fencing/st_client.c value = g_hash_table_lookup(device_args, param); value 554 lib/fencing/st_client.c value = param; /* Nothing more to do */ value 557 lib/fencing/st_client.c value = g_hash_table_lookup(device_args, param); value 561 lib/fencing/st_client.c if (pcmk__str_eq(value, "dynamic", pcmk__str_null_matches | pcmk__str_casei)) { value 666 lib/fencing/st_client.c const char *value = NULL; value 669 lib/fencing/st_client.c value = g_hash_table_lookup(device_args, buffer); value 671 lib/fencing/st_client.c if (value) { value 672 lib/fencing/st_client.c action->max_retries = atoi(value); value 1700 lib/fencing/st_client.c stonith_dump_pending_op(gpointer key, gpointer value, gpointer user_data) value 1703 lib/fencing/st_client.c stonith_callback_client_t *blob = value; value 2051 lib/fencing/st_client.c host_arg = params->value; value 2059 lib/fencing/st_client.c strdup(params->value)); value 2207 lib/fencing/st_client.c stonith_key_value_add(stonith_key_value_t * head, const char *key, const char *value) value 2215 lib/fencing/st_client.c if (value) { value 2216 lib/fencing/st_client.c p->value = strdup(value); value 2244 lib/fencing/st_client.c free(head->value); value 2380 lib/fencing/st_client.c if (pcmk__str_eq(dIter->value, agent, pcmk__str_none)) { value 29 lib/lrmd/lrmd_alerts.c const char *value) value 33 lib/lrmd/lrmd_alerts.c if (value == NULL) { value 34 lib/lrmd/lrmd_alerts.c value = ""; value 37 lib/lrmd/lrmd_alerts.c crm_trace("Setting alert key %s = '%s'", *key, value); value 38 lib/lrmd/lrmd_alerts.c head = lrmd_key_value_add(head, *key, value); value 45 lib/lrmd/lrmd_alerts.c int value) value 47 lib/lrmd/lrmd_alerts.c char *value_s = crm_itoa(value); value 56 lib/lrmd/lrmd_alerts.c guint value) value 58 lib/lrmd/lrmd_alerts.c char *value_s = crm_strdup_printf("%u", value); value 66 lib/lrmd/lrmd_alerts.c set_ev_kv(gpointer key, gpointer value, gpointer user_data) value 70 lib/lrmd/lrmd_alerts.c if (value) { value 72 lib/lrmd/lrmd_alerts.c (char*)key, (char*)value); value 73 lib/lrmd/lrmd_alerts.c *head = lrmd_key_value_add(*head, key, value); value 91 lib/lrmd/lrmd_alerts.c is_target_alert(char **list, const char *value) value 96 lib/lrmd/lrmd_alerts.c CRM_CHECK(value != NULL, return FALSE); value 105 lib/lrmd/lrmd_alerts.c if (strcmp(list[cnt], value) == 0) { value 171 lib/lrmd/lrmd_alerts.c copy_params = lrmd_key_value_add(copy_params, head->key, head->value); value 108 lib/lrmd/lrmd_client.c lrmd_list_add(lrmd_list_t * head, const char *value) value 113 lib/lrmd/lrmd_client.c p->val = strdup(value); value 145 lib/lrmd/lrmd_client.c lrmd_key_value_add(lrmd_key_value_t * head, const char *key, const char *value) value 151 lib/lrmd/lrmd_client.c p->value = strdup(value); value 175 lib/lrmd/lrmd_client.c free(head->value); value 928 lib/lrmd/lrmd_client.c const char *value; value 934 lib/lrmd/lrmd_client.c value = g_hash_table_lookup(hash, "stonith-watchdog-timeout"); value 935 lib/lrmd/lrmd_client.c crm_xml_add(data, F_LRMD_WATCHDOG, value); value 1780 lib/lrmd/lrmd_client.c g_hash_table_insert(params_table, strdup(param->key), strdup(param->value)); value 1835 lib/lrmd/lrmd_client.c hash2smartfield((gpointer) tmp->key, (gpointer) tmp->value, args); value 1861 lib/lrmd/lrmd_client.c hash2smartfield((gpointer) tmp->key, (gpointer) tmp->value, args); value 1907 lib/lrmd/lrmd_client.c *resources = lrmd_list_add(*resources, dIter->value); value 44 lib/pacemaker/pcmk_fence.c char *value = NULL; value 53 lib/pacemaker/pcmk_fence.c value = strchr(target, '='); value 54 lib/pacemaker/pcmk_fence.c if (value != NULL) { value 56 lib/pacemaker/pcmk_fence.c *value++ = '\0'; value 66 lib/pacemaker/pcmk_fence.c name, value, fence_level, value 70 lib/pacemaker/pcmk_fence.c name, value, fence_level); value 271 lib/pacemaker/pcmk_fence.c out->list_item(out, "device", "%s", dIter->value); value 421 lib/pacemaker/pcmk_fence.c out->list_item(out, "device", "%s", dIter->value); value 156 lib/pacemaker/pcmk_sched_allocate.c const char *value = NULL; value 166 lib/pacemaker/pcmk_sched_allocate.c value = crm_element_value(rsc->xml, attr_list[attr_lpc]); value 168 lib/pacemaker/pcmk_sched_allocate.c if (value == old_value /* i.e. NULL */ value 169 lib/pacemaker/pcmk_sched_allocate.c || pcmk__str_eq(value, old_value, pcmk__str_none)) { value 179 lib/pacemaker/pcmk_sched_allocate.c crm_str(old_value), crm_str(value)); value 785 lib/pacemaker/pcmk_sched_allocate.c const char *value = (const char *)gValue; value 796 lib/pacemaker/pcmk_sched_allocate.c score = char2score(value); value 2912 lib/pacemaker/pcmk_sched_allocate.c const char *value = NULL; value 2919 lib/pacemaker/pcmk_sched_allocate.c value = pe_pref(data_set->config_hash, "cluster-delay"); value 2920 lib/pacemaker/pcmk_sched_allocate.c crm_xml_add(data_set->graph, "cluster-delay", value); value 2922 lib/pacemaker/pcmk_sched_allocate.c value = pe_pref(data_set->config_hash, "stonith-timeout"); value 2923 lib/pacemaker/pcmk_sched_allocate.c crm_xml_add(data_set->graph, "stonith-timeout", value); value 2933 lib/pacemaker/pcmk_sched_allocate.c value = pe_pref(data_set->config_hash, "batch-limit"); value 2934 lib/pacemaker/pcmk_sched_allocate.c crm_xml_add(data_set->graph, "batch-limit", value); value 2938 lib/pacemaker/pcmk_sched_allocate.c value = pe_pref(data_set->config_hash, "migration-limit"); value 2939 lib/pacemaker/pcmk_sched_allocate.c if (crm_parse_ll(value, NULL) > 0) { value 2940 lib/pacemaker/pcmk_sched_allocate.c crm_xml_add(data_set->graph, "migration-limit", value); value 719 lib/pacemaker/pcmk_sched_constraints.c const char *value = crm_element_value(xml_obj, XML_LOC_ATTR_SOURCE); value 721 lib/pacemaker/pcmk_sched_constraints.c if(value) { value 722 lib/pacemaker/pcmk_sched_constraints.c pe_resource_t *rsc_lh = pe_find_constraint_resource(data_set->resources, value); value 727 lib/pacemaker/pcmk_sched_constraints.c value = crm_element_value(xml_obj, XML_LOC_ATTR_SOURCE_PATTERN); value 728 lib/pacemaker/pcmk_sched_constraints.c if(value) { value 733 lib/pacemaker/pcmk_sched_constraints.c if(value[0] == '!') { value 734 lib/pacemaker/pcmk_sched_constraints.c value++; value 738 lib/pacemaker/pcmk_sched_constraints.c if (regcomp(r_patt, value, REG_EXTENDED)) { value 741 lib/pacemaker/pcmk_sched_constraints.c " has invalid value '%s'", id, value); value 773 lib/pacemaker/pcmk_sched_constraints.c crm_debug("'%s' matched '%s' for %s", r->id, value, id); value 777 lib/pacemaker/pcmk_sched_constraints.c crm_debug("'%s' is an inverted match of '%s' for %s", r->id, value, id); value 781 lib/pacemaker/pcmk_sched_constraints.c crm_trace("'%s' does not match '%s' for %s", r->id, value, id); value 1255 lib/pacemaker/pcmk_sched_graph.c const char *value = g_hash_table_lookup(action->rsc->meta, "external-ip"); value 1263 lib/pacemaker/pcmk_sched_graph.c if(value) { value 1264 lib/pacemaker/pcmk_sched_graph.c hash2smartfield((gpointer)"pcmk_external_ip", (gpointer)value, (gpointer)args_xml); value 84 lib/pacemaker/pcmk_sched_group.c const char *value = NULL; value 110 lib/pacemaker/pcmk_sched_group.c value = g_hash_table_lookup(rsc->meta, XML_RSC_ATTR_PROMOTABLE); value 111 lib/pacemaker/pcmk_sched_group.c if (crm_is_true(value)) { value 208 lib/pacemaker/pcmk_sched_native.c const char *value) value 220 lib/pacemaker/pcmk_sched_native.c && pcmk__str_eq(value, pe_node_attribute_raw(node, attr), pcmk__str_casei)) { value 230 lib/pacemaker/pcmk_sched_native.c rsc->id, attr, value); value 234 lib/pacemaker/pcmk_sched_native.c best_node, rsc->id, best_score, attr, value); value 669 lib/pacemaker/pcmk_sched_native.c const char *value = NULL; value 678 lib/pacemaker/pcmk_sched_native.c value = crm_element_value(operation, "name"); value 679 lib/pacemaker/pcmk_sched_native.c if (!pcmk__str_eq(value, name, pcmk__str_casei)) { value 683 lib/pacemaker/pcmk_sched_native.c value = crm_element_value(operation, XML_LRM_ATTR_INTERVAL); value 684 lib/pacemaker/pcmk_sched_native.c interval2_ms = crm_parse_interval_spec(value); value 1864 lib/pacemaker/pcmk_sched_native.c const char *value = NULL; value 1877 lib/pacemaker/pcmk_sched_native.c value = pe_node_attribute_raw(rsc_rh->allocated_to, attribute); value 1894 lib/pacemaker/pcmk_sched_native.c } else if (pcmk__str_eq(pe_node_attribute_raw(node, attribute), value, pcmk__str_casei)) { value 3470 lib/pacemaker/pcmk_sched_native.c char *value = g_hash_table_lookup(rsc->meta, XML_RSC_ATTR_INCARNATION); value 3473 lib/pacemaker/pcmk_sched_native.c if (value) { value 3477 lib/pacemaker/pcmk_sched_native.c crm_xml_add(xml, name, value); value 3481 lib/pacemaker/pcmk_sched_native.c value = g_hash_table_lookup(rsc->meta, XML_RSC_ATTR_REMOTE_NODE); value 3482 lib/pacemaker/pcmk_sched_native.c if (value) { value 3486 lib/pacemaker/pcmk_sched_native.c crm_xml_add(xml, name, value); value 188 lib/pacemaker/pcmk_sched_notif.c dup_attr(gpointer key, gpointer value, gpointer user_data) value 190 lib/pacemaker/pcmk_sched_notif.c add_hash_param(user_data, key, value); value 199 lib/pacemaker/pcmk_sched_notif.c add_hash_param(action->meta, nvpair->name, nvpair->value); value 209 lib/pacemaker/pcmk_sched_notif.c const char *value = NULL; value 228 lib/pacemaker/pcmk_sched_notif.c value = g_hash_table_lookup(op->meta, "notify_type"); value 231 lib/pacemaker/pcmk_sched_notif.c pe_rsc_trace(rsc, "Creating notify actions for %s: %s (%s-%s)", op->uuid, rsc->id, value, task); value 233 lib/pacemaker/pcmk_sched_notif.c key = pcmk__notify_key(rsc->id, value, task); value 508 lib/pacemaker/pcmk_sched_notif.c #define add_notify_env(n_data, key, value) do { \ value 509 lib/pacemaker/pcmk_sched_notif.c n_data->keys = pcmk_prepend_nvpair(n_data->keys, key, value); \ value 512 lib/pacemaker/pcmk_sched_notif.c #define add_notify_env_free(n_data, key, value) do { \ value 513 lib/pacemaker/pcmk_sched_notif.c n_data->keys = pcmk_prepend_nvpair(n_data->keys, key, value); \ value 514 lib/pacemaker/pcmk_sched_notif.c free(value); value = NULL; \ value 961 lib/pacemaker/pcmk_sched_promotable.c const char *value = NULL; value 970 lib/pacemaker/pcmk_sched_promotable.c value = pe_node_attribute_raw(other, attr); value 975 lib/pacemaker/pcmk_sched_promotable.c if (pcmk__str_eq(value, tmp, pcmk__str_casei)) { value 52 lib/pacemaker/pcmk_sched_transition.c inject_transient_attr(xmlNode * cib_node, const char *name, const char *value) value 61 lib/pacemaker/pcmk_sched_transition.c name, value, node_path, ID(cib_node)); value 76 lib/pacemaker/pcmk_sched_transition.c crm_create_nvpair_xml(instance_attrs, NULL, name, value); value 30 lib/pacemaker/pcmk_sched_utilization.c do_compare_capacity1(gpointer key, gpointer value, gpointer user_data) value 36 lib/pacemaker/pcmk_sched_utilization.c node1_capacity = crm_parse_int(value, "0"); value 48 lib/pacemaker/pcmk_sched_utilization.c do_compare_capacity2(gpointer key, gpointer value, gpointer user_data) value 59 lib/pacemaker/pcmk_sched_utilization.c node2_capacity = crm_parse_int(value, "0"); value 92 lib/pacemaker/pcmk_sched_utilization.c do_calculate_utilization(gpointer key, gpointer value, gpointer user_data) value 100 lib/pacemaker/pcmk_sched_utilization.c result = crm_itoa(crm_parse_int(current, "0") + crm_parse_int(value, "0")); value 104 lib/pacemaker/pcmk_sched_utilization.c result = crm_itoa(crm_parse_int(current, "0") - crm_parse_int(value, "0")); value 132 lib/pacemaker/pcmk_sched_utilization.c check_capacity(gpointer key, gpointer value, gpointer user_data) value 138 lib/pacemaker/pcmk_sched_utilization.c required = crm_parse_int(value, "0"); value 25 lib/pacemaker/pcmk_trans_unpack.c const char *value = crm_element_value(xml_action, XML_ATTR_ID); value 27 lib/pacemaker/pcmk_trans_unpack.c if (value == NULL) { value 40 lib/pacemaker/pcmk_trans_unpack.c action->id = crm_parse_int(value, NULL); value 57 lib/pacemaker/pcmk_trans_unpack.c value = g_hash_table_lookup(action->params, "CRM_meta_timeout"); value 58 lib/pacemaker/pcmk_trans_unpack.c if (value != NULL) { value 59 lib/pacemaker/pcmk_trans_unpack.c action->timeout = crm_parse_int(value, NULL); value 63 lib/pacemaker/pcmk_trans_unpack.c value = g_hash_table_lookup(action->params, "CRM_meta_start_delay"); value 64 lib/pacemaker/pcmk_trans_unpack.c if (value != NULL) { value 65 lib/pacemaker/pcmk_trans_unpack.c action->timeout += crm_parse_int(value, NULL); value 74 lib/pacemaker/pcmk_trans_unpack.c value = g_hash_table_lookup(action->params, "CRM_meta_can_fail"); value 75 lib/pacemaker/pcmk_trans_unpack.c if (value != NULL) { value 76 lib/pacemaker/pcmk_trans_unpack.c crm_str_to_boolean(value, &(action->can_fail)); value 87 lib/pacemaker/pcmk_trans_unpack.c const char *value = NULL; value 98 lib/pacemaker/pcmk_trans_unpack.c value = crm_element_value(xml_synapse, XML_CIB_ATTR_PRIORITY); value 99 lib/pacemaker/pcmk_trans_unpack.c if (value != NULL) { value 100 lib/pacemaker/pcmk_trans_unpack.c new_synapse->priority = crm_parse_int(value, NULL); value 300 lib/pacemaker/pcmk_trans_unpack.c const char *value = NULL; value 321 lib/pacemaker/pcmk_trans_unpack.c while (g_hash_table_iter_next(&iter, (void **)&name, (void **)&value)) { value 322 lib/pacemaker/pcmk_trans_unpack.c g_hash_table_insert(op->params, strdup(name), strdup(value)); value 959 lib/pengine/bundle.c const char *value; value 965 lib/pengine/bundle.c value = g_hash_table_lookup(rsc->parameters, XML_RSC_ATTR_REMOTE_RA_ADDR); value 966 lib/pengine/bundle.c if (!pcmk__str_eq(value, "#uname", pcmk__str_casei)) { value 977 lib/pengine/bundle.c value = crm_element_value(rsc->xml, match[m][0]); value 978 lib/pengine/bundle.c if (!pcmk__str_eq(value, match[m][1], pcmk__str_casei)) { value 1034 lib/pengine/bundle.c const char *value = NULL; value 1064 lib/pengine/bundle.c value = crm_element_value(xml_obj, XML_RSC_ATTR_PROMOTED_MAX); value 1065 lib/pengine/bundle.c if (value == NULL) { value 1067 lib/pengine/bundle.c value = crm_element_value(xml_obj, "masters"); value 1069 lib/pengine/bundle.c bundle_data->promoted_max = crm_parse_int(value, "0"); value 1076 lib/pengine/bundle.c value = crm_element_value(xml_obj, "replicas"); value 1077 lib/pengine/bundle.c if ((value == NULL) && bundle_data->promoted_max) { value 1080 lib/pengine/bundle.c bundle_data->nreplicas = crm_parse_int(value, "1"); value 1092 lib/pengine/bundle.c value = crm_element_value(xml_obj, "replicas-per-host"); value 1093 lib/pengine/bundle.c bundle_data->nreplicas_per_host = crm_parse_int(value, "1"); value 1115 lib/pengine/bundle.c value = crm_element_value(xml_obj, "add-host"); value 1116 lib/pengine/bundle.c if (crm_str_to_boolean(value, &bundle_data->add_host) != 1) { value 1172 lib/pengine/bundle.c char *value = NULL; value 1191 lib/pengine/bundle.c value = crm_itoa(bundle_data->nreplicas); value 1193 lib/pengine/bundle.c XML_RSC_ATTR_INCARNATION_MAX, value); value 1194 lib/pengine/bundle.c free(value); value 1196 lib/pengine/bundle.c value = crm_itoa(bundle_data->nreplicas_per_host); value 1198 lib/pengine/bundle.c XML_RSC_ATTR_INCARNATION_NODEMAX, value); value 1199 lib/pengine/bundle.c free(value); value 1208 lib/pengine/bundle.c value = crm_itoa(bundle_data->promoted_max); value 1210 lib/pengine/bundle.c XML_RSC_ATTR_PROMOTED_MAX, value); value 1211 lib/pengine/bundle.c free(value); value 24 lib/pengine/common.c check_health(const char *value) value 26 lib/pengine/common.c return pcmk__strcase_any_of(value, "none", "custom", "only-green", "progressive", value 31 lib/pengine/common.c check_stonith_action(const char *value) value 33 lib/pengine/common.c return pcmk__strcase_any_of(value, "reboot", "poweroff", "off", NULL); value 37 lib/pengine/common.c check_placement_strategy(const char *value) value 39 lib/pengine/common.c return pcmk__strcase_any_of(value, "default", "utilization", "minimal", value 573 lib/pengine/common.c add_hash_param(GHashTable * hash, const char *name, const char *value) value 577 lib/pengine/common.c crm_trace("adding: name=%s value=%s", crm_str(name), crm_str(value)); value 578 lib/pengine/common.c if (name == NULL || value == NULL) { value 581 lib/pengine/common.c } else if (pcmk__str_eq(value, "#default", pcmk__str_casei)) { value 585 lib/pengine/common.c g_hash_table_insert(hash, strdup(name), strdup(value)); value 94 lib/pengine/complex.c dup_attr(gpointer key, gpointer value, gpointer user_data) value 96 lib/pengine/complex.c add_hash_param(user_data, key, value); value 402 lib/pengine/complex.c const char *value = NULL; value 475 lib/pengine/complex.c value = crm_element_value((*rsc)->xml, XML_RSC_ATTR_INCARNATION); value 476 lib/pengine/complex.c if (value) { value 477 lib/pengine/complex.c (*rsc)->id = crm_strdup_printf("%s:%s", id, value); value 478 lib/pengine/complex.c add_hash_param((*rsc)->meta, XML_RSC_ATTR_INCARNATION, value); value 511 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_CIB_ATTR_PRIORITY); value 512 lib/pengine/complex.c (*rsc)->priority = crm_parse_int(value, "0"); value 514 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_RSC_ATTR_NOTIFY); value 515 lib/pengine/complex.c if (crm_is_true(value)) { value 528 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_OP_ATTR_ALLOW_MIGRATE); value 532 lib/pengine/complex.c if (crm_is_true(value) && has_versioned_params) { value 534 lib/pengine/complex.c } else if (crm_is_true(value)) { value 536 lib/pengine/complex.c } else if ((value == NULL) && remote_node && !has_versioned_params) { value 547 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_RSC_ATTR_MANAGED); value 548 lib/pengine/complex.c if (value != NULL && !pcmk__str_eq("default", value, pcmk__str_casei)) { value 549 lib/pengine/complex.c if (crm_is_true(value)) { value 556 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_RSC_ATTR_MAINTENANCE); value 557 lib/pengine/complex.c if (crm_is_true(value)) { value 567 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_RSC_ATTR_UNIQUE); value 568 lib/pengine/complex.c if (crm_is_true(value)) { value 580 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_RSC_ATTR_RESTART); value 581 lib/pengine/complex.c if (pcmk__str_eq(value, "restart", pcmk__str_casei)) { value 592 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_RSC_ATTR_MULTIPLE); value 593 lib/pengine/complex.c if (pcmk__str_eq(value, "stop_only", pcmk__str_casei)) { value 597 lib/pengine/complex.c } else if (pcmk__str_eq(value, "block", pcmk__str_casei)) { value 606 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_RSC_ATTR_STICKINESS); value 607 lib/pengine/complex.c if (value != NULL && !pcmk__str_eq("default", value, pcmk__str_casei)) { value 608 lib/pengine/complex.c (*rsc)->stickiness = char2score(value); value 611 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_RSC_ATTR_FAIL_STICKINESS); value 612 lib/pengine/complex.c if (value != NULL && !pcmk__str_eq("default", value, pcmk__str_casei)) { value 613 lib/pengine/complex.c (*rsc)->migration_threshold = char2score(value); value 631 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_RSC_ATTR_REQUIRES); value 634 lib/pengine/complex.c if (pcmk__str_eq(value, "nothing", pcmk__str_casei)) { value 636 lib/pengine/complex.c } else if (pcmk__str_eq(value, "quorum", pcmk__str_casei)) { value 639 lib/pengine/complex.c } else if (pcmk__str_eq(value, "unfencing", pcmk__str_casei)) { value 644 lib/pengine/complex.c value = "quorum"; value 652 lib/pengine/complex.c value = "quorum"; value 661 lib/pengine/complex.c } else if (pcmk__str_eq(value, "fencing", pcmk__str_casei)) { value 669 lib/pengine/complex.c const char *orig_value = value; value 673 lib/pengine/complex.c value = "quorum"; value 680 lib/pengine/complex.c value = "quorum"; value 683 lib/pengine/complex.c value = "unfencing"; value 686 lib/pengine/complex.c value = "fencing"; value 689 lib/pengine/complex.c value = "nothing"; value 692 lib/pengine/complex.c value = "quorum"; value 698 lib/pengine/complex.c (*rsc)->id, value, orig_value); value 704 lib/pengine/complex.c pe_rsc_trace((*rsc), "\tRequired to start: %s%s", value, isdefault?" (default)":""); value 705 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->meta, XML_RSC_ATTR_FAIL_TIMEOUT); value 706 lib/pengine/complex.c if (value != NULL) { value 708 lib/pengine/complex.c (*rsc)->failure_timeout = (int) (crm_parse_interval_spec(value) / 1000); value 712 lib/pengine/complex.c value = g_hash_table_lookup((*rsc)->parameters, XML_REMOTE_ATTR_RECONNECT_INTERVAL); value 713 lib/pengine/complex.c if (value) { value 716 lib/pengine/complex.c (*rsc)->remote_reconnect_ms = crm_parse_interval_spec(value); value 255 lib/pengine/failcounts.c const char *value = NULL; value 265 lib/pengine/failcounts.c while (g_hash_table_iter_next(&iter, (gpointer *) &key, (gpointer *) &value)) { value 267 lib/pengine/failcounts.c failcount = pe__add_scores(failcount, char2score(value)); value 269 lib/pengine/failcounts.c last = QB_MAX(last, (time_t) crm_parse_ll(value, NULL)); value 320 lib/pengine/native.c const char *value = NULL; value 345 lib/pengine/native.c value = g_hash_table_lookup(hash, name); value 346 lib/pengine/native.c if (value == NULL) { value 348 lib/pengine/native.c value = g_hash_table_lookup(rsc->meta, name); value 351 lib/pengine/native.c if (value != NULL) { value 352 lib/pengine/native.c value_copy = strdup(value); value 388 lib/pengine/native.c native_print_attr(gpointer key, gpointer value, gpointer user_data) value 393 lib/pengine/native.c status_print("Option: %s = %s\n", (char *)key, (char *)value); value 771 lib/pengine/native.c gpointer key, value; value 775 lib/pengine/native.c while (g_hash_table_iter_next(&iter, &key, &value)) { value 776 lib/pengine/native.c out->list_item(out, NULL, "Option: %s = %s", (char *) key, (char *) value); value 838 lib/pengine/native.c gpointer key, value; value 842 lib/pengine/native.c while (g_hash_table_iter_next(&iter, &key, &value)) { value 843 lib/pengine/native.c out->list_item(out, NULL, "Option: %s = %s", (char *) key, (char *) value); value 104 lib/pengine/pe_output.c const char *value = NULL; value 122 lib/pengine/pe_output.c value = crm_element_value(xml_op, XML_RSC_OP_T_EXEC); value 123 lib/pengine/pe_output.c if (value) { value 124 lib/pengine/pe_output.c char *pair = pcmk_format_nvpair(XML_RSC_OP_T_EXEC, value, "ms"); value 129 lib/pengine/pe_output.c value = crm_element_value(xml_op, XML_RSC_OP_T_QUEUE); value 130 lib/pengine/pe_output.c if (value) { value 131 lib/pengine/pe_output.c char *pair = pcmk_format_nvpair(XML_RSC_OP_T_QUEUE, value, "ms"); value 1235 lib/pengine/pe_output.c const char *value = va_arg(args, const char *); value 1241 lib/pengine/pe_output.c int v = crm_parse_int(value, "0"); value 1244 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s\t: Connectivity is lost", name, value); value 1246 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s\t: Connectivity is degraded (Expected=%d)", name, value, expected_score); value 1248 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s", name, value); value 1251 lib/pengine/pe_output.c out->list_item(out, NULL, "%-32s\t: %-10s", name, value); value 1261 lib/pengine/pe_output.c const char *value = va_arg(args, const char *); value 1266 lib/pengine/pe_output.c int v = crm_parse_int(value, "0"); value 1267 lib/pengine/pe_output.c char *s = crm_strdup_printf("%s: %s", name, value); value 1281 lib/pengine/pe_output.c out->list_item(out, NULL, "%s: %s", name, value); value 1291 lib/pengine/pe_output.c const char *value = va_arg(args, const char *); value 1297 lib/pengine/pe_output.c xmlSetProp(node, (pcmkXmlStr) "value", (pcmkXmlStr) value); value 1545 lib/pengine/pe_output.c const char *value = NULL; value 1547 lib/pengine/pe_output.c value = crm_element_value(xml_op, XML_RSC_OP_LAST_CHANGE); value 1548 lib/pengine/pe_output.c if (value) { value 1549 lib/pengine/pe_output.c time_t int_value = (time_t) crm_parse_int(value, NULL); value 1556 lib/pengine/pe_output.c value = crm_element_value(xml_op, XML_RSC_OP_LAST_RUN); value 1557 lib/pengine/pe_output.c if (value) { value 1558 lib/pengine/pe_output.c time_t int_value = (time_t) crm_parse_int(value, NULL); value 1565 lib/pengine/pe_output.c value = crm_element_value(xml_op, XML_RSC_OP_T_EXEC); value 1566 lib/pengine/pe_output.c if (value) { value 1567 lib/pengine/pe_output.c char *s = crm_strdup_printf("%sms", value); value 1571 lib/pengine/pe_output.c value = crm_element_value(xml_op, XML_RSC_OP_T_QUEUE); value 1572 lib/pengine/pe_output.c if (value) { value 1573 lib/pengine/pe_output.c char *s = crm_strdup_printf("%sms", value); value 86 lib/pengine/remote.c const char *value = NULL; value 92 lib/pengine/remote.c value = crm_element_value(xml, XML_ATTR_TYPE); value 93 lib/pengine/remote.c if (!pcmk__str_eq(value, "remote", pcmk__str_casei)) { value 97 lib/pengine/remote.c value = crm_element_value(xml, XML_AGENT_ATTR_CLASS); value 98 lib/pengine/remote.c if (!pcmk__str_eq(value, PCMK_RESOURCE_CLASS_OCF, pcmk__str_casei)) { value 102 lib/pengine/remote.c value = crm_element_value(xml, XML_AGENT_ATTR_PROVIDER); value 103 lib/pengine/remote.c if (!pcmk__str_eq(value, "pacemaker", pcmk__str_casei)) { value 210 lib/pengine/rules.c const char *value = crm_element_value(cron_spec, xml_field); value 213 lib/pengine/rules.c if (value == NULL) { value 218 lib/pengine/rules.c if (pcmk__parse_ll_range(value, &low, &high) == pcmk_rc_unknown_format) { value 248 lib/pengine/rules.c crm_debug("Condition '%s' in %s: passed", value, xml_field); value 250 lib/pengine/rules.c crm_debug("Condition '%s' in %s: failed", value, xml_field); value 308 lib/pengine/rules.c value = crm_element_value(duration_spec, xml_field); \ value 309 lib/pengine/rules.c if(value != NULL) { \ value 310 lib/pengine/rules.c int value_i = crm_parse_int(value, "0"); \ value 318 lib/pengine/rules.c const char *value = NULL; value 444 lib/pengine/rules.c const char *value = NULL; value 465 lib/pengine/rules.c value = crm_element_value(an_attr, XML_NVPAIR_ATTR_VALUE); value 466 lib/pengine/rules.c if (value == NULL) { value 467 lib/pengine/rules.c value = crm_element_value(ref_nvpair, XML_NVPAIR_ATTR_VALUE); value 470 lib/pengine/rules.c if (name == NULL || value == NULL) { value 476 lib/pengine/rules.c if (pcmk__str_eq(value, "#default", pcmk__str_casei)) { value 479 lib/pengine/rules.c name, value); value 485 lib/pengine/rules.c crm_trace("Setting %s=\"%s\"", name, value); value 486 lib/pengine/rules.c g_hash_table_insert(hash, strdup(name), strdup(value)); value 490 lib/pengine/rules.c name, value, old_value); value 491 lib/pengine/rules.c g_hash_table_replace(hash, strdup(name), strdup(value)); value 856 lib/pengine/rules.c const char *value = NULL; value 859 lib/pengine/rules.c value = crm_element_value(rule, XML_RULE_ATTR_BOOLEAN_OP); value 860 lib/pengine/rules.c if (pcmk__str_eq(value, "or", pcmk__str_casei)) { value 1117 lib/pengine/rules.c const char *value = NULL; value 1122 lib/pengine/rules.c value = crm_element_value(expr, XML_EXPR_ATTR_VALUE); value 1128 lib/pengine/rules.c " (\'%s\' \'%s\' \'%s\')", crm_str(attr), crm_str(op), crm_str(value)); value 1150 lib/pengine/rules.c const char *param_name = value; value 1155 lib/pengine/rules.c value = param_value; value 1169 lib/pengine/rules.c return accept_attr_expr(h_val, value, type, op); value 1179 lib/pengine/rules.c const char *value = NULL; value 1193 lib/pengine/rules.c value = crm_element_value(expr, "start"); value 1194 lib/pengine/rules.c if (value != NULL) { value 1195 lib/pengine/rules.c start = crm_time_new(value); value 1197 lib/pengine/rules.c value = crm_element_value(expr, "end"); value 1198 lib/pengine/rules.c if (value != NULL) { value 1199 lib/pengine/rules.c end = crm_time_new(value); value 1293 lib/pengine/rules.c const char *value = NULL; value 1299 lib/pengine/rules.c value = crm_element_value(expr, XML_EXPR_ATTR_VALUE); value 1313 lib/pengine/rules.c if (text2role(value) == rule_data->role) { value 1322 lib/pengine/rules.c } else if (text2role(value) != rule_data->role) { value 24 lib/pengine/rules_alerts.c const char *value = NULL; value 30 lib/pengine/rules_alerts.c value = g_hash_table_lookup(config_hash, XML_ALERT_ATTR_TIMEOUT); value 31 lib/pengine/rules_alerts.c if (value) { value 32 lib/pengine/rules_alerts.c entry->timeout = crm_get_msec(value); value 39 lib/pengine/rules_alerts.c entry->id, (char*)value, PCMK__ALERT_DEFAULT_TIMEOUT_MS); value 50 lib/pengine/rules_alerts.c value = g_hash_table_lookup(config_hash, XML_ALERT_ATTR_TSTAMP_FORMAT); value 51 lib/pengine/rules_alerts.c if (value) { value 55 lib/pengine/rules_alerts.c entry->tstamp_format = strdup(value); value 85 lib/pengine/rules_alerts.c const char *value = crm_element_value(child, XML_NVPAIR_ATTR_VALUE); value 87 lib/pengine/rules_alerts.c if (value == NULL) { value 88 lib/pengine/rules_alerts.c value = ""; value 90 lib/pengine/rules_alerts.c g_hash_table_insert(entry->envvars, strdup(name), strdup(value)); value 92 lib/pengine/rules_alerts.c entry->id, name, value); value 78 lib/pengine/status.c const char *value = crm_element_value(data_set->input, XML_ATTR_HAVE_QUORUM); value 98 lib/pengine/status.c if (crm_is_true(value)) { value 20 lib/pengine/tags.c gpointer value; value 27 lib/pengine/tags.c value = g_hash_table_lookup(data_set->tags, tag_name); value 29 lib/pengine/tags.c if (value == NULL) { value 33 lib/pengine/tags.c for (GListPtr refs = ((pe_tag_t *) value)->refs; refs; refs = refs->next) { value 51 lib/pengine/tags.c gpointer value; value 58 lib/pengine/tags.c value = g_hash_table_lookup(data_set->tags, tag_name); value 60 lib/pengine/tags.c if (value == NULL) { value 65 lib/pengine/tags.c for (GListPtr refs = ((pe_tag_t *) value)->refs; refs; refs = refs->next) { value 200 lib/pengine/unpack.c const char *value = NULL; value 224 lib/pengine/unpack.c value = pe_pref(data_set->config_hash, XML_ATTR_HAVE_WATCHDOG); value 225 lib/pengine/unpack.c if (value && crm_is_true(value)) { value 236 lib/pengine/unpack.c value = pe_pref(data_set->config_hash, "stonith-timeout"); value 237 lib/pengine/unpack.c data_set->stonith_timeout = (int) crm_parse_interval_spec(value); value 257 lib/pengine/unpack.c value = pe_pref(data_set->config_hash, value 259 lib/pengine/unpack.c if (value) { value 260 lib/pengine/unpack.c data_set->priority_fencing_delay = crm_parse_interval_spec(value) / 1000; value 273 lib/pengine/unpack.c value = pe_pref(data_set->config_hash, "no-quorum-policy"); value 275 lib/pengine/unpack.c if (pcmk__str_eq(value, "ignore", pcmk__str_casei)) { value 278 lib/pengine/unpack.c } else if (pcmk__str_eq(value, "freeze", pcmk__str_casei)) { value 281 lib/pengine/unpack.c } else if (pcmk__str_eq(value, "demote", pcmk__str_casei)) { value 284 lib/pengine/unpack.c } else if (pcmk__str_eq(value, "suicide", pcmk__str_casei)) { value 370 lib/pengine/unpack.c value = pe_pref(data_set->config_hash, value 372 lib/pengine/unpack.c data_set->shutdown_lock = crm_parse_interval_spec(value) / 1000; value 479 lib/pengine/unpack.c const char *value = crm_element_value(attr, XML_NVPAIR_ATTR_VALUE); value 483 lib/pengine/unpack.c remote_name = value; value 485 lib/pengine/unpack.c remote_server = value; value 487 lib/pengine/unpack.c remote_port = value; value 489 lib/pengine/unpack.c connect_timeout = value; value 491 lib/pengine/unpack.c remote_allow_migrate=value; value 493 lib/pengine/unpack.c is_managed = value; value 2452 lib/pengine/unpack.c set_node_score(gpointer key, gpointer value, gpointer user_data) value 2454 lib/pengine/unpack.c pe_node_t *node = value; value 24 lib/pengine/utils.c void print_str_str(gpointer key, gpointer value, gpointer user_data); value 25 lib/pengine/utils.c gboolean ghash_free_str_str(gpointer key, gpointer value, gpointer user_data); value 339 lib/pengine/utils.c append_dump_text(gpointer key, gpointer value, gpointer user_data) value 343 lib/pengine/utils.c *dump_text, (char *)key, (char *)value); value 700 lib/pengine/utils.c valid_stop_on_fail(const char *value) value 702 lib/pengine/utils.c return !pcmk__strcase_any_of(value, "standby", "demote", "stop", NULL); value 714 lib/pengine/utils.c const char *value = g_hash_table_lookup(action->meta, XML_OP_ATTR_ON_FAIL); value 717 lib/pengine/utils.c && !valid_stop_on_fail(value)) { value 721 lib/pengine/utils.c "allowed for stop", action->rsc->id, value); value 724 lib/pengine/utils.c } else if (pcmk__str_eq(action->task, CRMD_ACTION_DEMOTE, pcmk__str_casei) && !value) { value 731 lib/pengine/utils.c (operation != NULL) && (value == NULL); value 754 lib/pengine/utils.c value = on_fail; value 757 lib/pengine/utils.c value = "ignore"; value 759 lib/pengine/utils.c } else if (pcmk__str_eq(value, "demote", pcmk__str_casei)) { value 776 lib/pengine/utils.c return value; value 785 lib/pengine/utils.c const char *value = NULL; value 797 lib/pengine/utils.c value = crm_element_value(operation, "enabled"); value 798 lib/pengine/utils.c if (!include_disabled && value && crm_is_true(value) == FALSE) { value 819 lib/pengine/utils.c unpack_start_delay(const char *value, GHashTable *meta) value 823 lib/pengine/utils.c if (value != NULL) { value 824 lib/pengine/utils.c start_delay = crm_get_msec(value); value 840 lib/pengine/utils.c unpack_interval_origin(const char *value, xmlNode *xml_obj, guint interval_ms, value 848 lib/pengine/utils.c if ((value == NULL) || (interval_ms == 0) || (now == NULL)) { value 853 lib/pengine/utils.c origin = crm_time_new(value); value 857 lib/pengine/utils.c (ID(xml_obj)? ID(xml_obj) : "(missing ID)"), value); value 881 lib/pengine/utils.c unpack_timeout(const char *value) value 883 lib/pengine/utils.c int timeout_ms = crm_get_msec(value); value 953 lib/pengine/utils.c const char *value = crm_element_value(attr, XML_NVPAIR_ATTR_VALUE); value 956 lib/pengine/utils.c int start_delay = unpack_start_delay(value, NULL); value 962 lib/pengine/utils.c if (unpack_interval_origin(value, xml_obj, interval_ms, now, value 969 lib/pengine/utils.c int timeout_ms = unpack_timeout(value); value 996 lib/pengine/utils.c const char *value = NULL; value 1033 lib/pengine/utils.c value = crm_element_value(min_interval_mon, XML_ATTR_TIMEOUT); value 1034 lib/pengine/utils.c if (value) { value 1036 lib/pengine/utils.c "monitor's timeout '%s'", action->uuid, value); value 1038 lib/pengine/utils.c strdup(value)); value 1105 lib/pengine/utils.c value = g_hash_table_lookup(action->rsc->parameters, value 1108 lib/pengine/utils.c if (value) { value 1110 lib/pengine/utils.c "overriding default", action->uuid, value); value 1112 lib/pengine/utils.c strdup(value)); value 1117 lib/pengine/utils.c value = g_hash_table_lookup(action->meta, XML_ATTR_TIMEOUT); value 1118 lib/pengine/utils.c timeout_ms = unpack_timeout(value); value 1124 lib/pengine/utils.c value = "nothing (not start or promote)"; value 1128 lib/pengine/utils.c value = "fencing"; value 1132 lib/pengine/utils.c value = "quorum"; value 1136 lib/pengine/utils.c value = "nothing"; value 1138 lib/pengine/utils.c pe_rsc_trace(action->rsc, "%s requires %s", action->uuid, value); value 1140 lib/pengine/utils.c value = unpack_operation_on_fail(action); value 1142 lib/pengine/utils.c if (value == NULL) { value 1144 lib/pengine/utils.c } else if (pcmk__str_eq(value, "block", pcmk__str_casei)) { value 1147 lib/pengine/utils.c value = "block"; // The above could destroy the original string value 1149 lib/pengine/utils.c } else if (pcmk__str_eq(value, "fence", pcmk__str_casei)) { value 1151 lib/pengine/utils.c value = "node fencing"; value 1159 lib/pengine/utils.c value = "stop resource"; value 1162 lib/pengine/utils.c } else if (pcmk__str_eq(value, "standby", pcmk__str_casei)) { value 1164 lib/pengine/utils.c value = "node standby"; value 1166 lib/pengine/utils.c } else if (pcmk__strcase_any_of(value, "ignore", "nothing", NULL)) { value 1168 lib/pengine/utils.c value = "ignore"; value 1170 lib/pengine/utils.c } else if (pcmk__str_eq(value, "migrate", pcmk__str_casei)) { value 1172 lib/pengine/utils.c value = "force migration"; value 1174 lib/pengine/utils.c } else if (pcmk__str_eq(value, "stop", pcmk__str_casei)) { value 1177 lib/pengine/utils.c value = "stop resource"; value 1179 lib/pengine/utils.c } else if (pcmk__str_eq(value, "restart", pcmk__str_casei)) { value 1181 lib/pengine/utils.c value = "restart (and possibly migrate)"; value 1183 lib/pengine/utils.c } else if (pcmk__str_eq(value, "restart-container", pcmk__str_casei)) { value 1186 lib/pengine/utils.c value = "restart container (and possibly migrate)"; value 1189 lib/pengine/utils.c value = NULL; value 1192 lib/pengine/utils.c } else if (pcmk__str_eq(value, "demote", pcmk__str_casei)) { value 1194 lib/pengine/utils.c value = "demote instance"; value 1197 lib/pengine/utils.c pe_err("Resource %s: Unknown failure type (%s)", action->rsc->id, value); value 1198 lib/pengine/utils.c value = NULL; value 1202 lib/pengine/utils.c if (value == NULL && container) { value 1204 lib/pengine/utils.c value = "restart container (and possibly migrate) (default)"; value 1214 lib/pengine/utils.c } else if (((value == NULL) || !pcmk_is_set(action->rsc->flags, pe_rsc_managed)) value 1223 lib/pengine/utils.c value = "stop unmanaged remote node (enforcing default)"; value 1227 lib/pengine/utils.c value = "fence remote node (default)"; value 1229 lib/pengine/utils.c value = "recover remote node connection (default)"; value 1238 lib/pengine/utils.c } else if (value == NULL && pcmk__str_eq(action->task, CRMD_ACTION_STOP, pcmk__str_casei)) { value 1241 lib/pengine/utils.c value = "resource fence (default)"; value 1245 lib/pengine/utils.c value = "resource block (default)"; value 1248 lib/pengine/utils.c } else if (value == NULL) { value 1250 lib/pengine/utils.c value = "restart (and possibly migrate) (default)"; value 1254 lib/pengine/utils.c action->uuid, value); value 1256 lib/pengine/utils.c value = NULL; value 1258 lib/pengine/utils.c value = g_hash_table_lookup(action->meta, "role_after_failure"); value 1259 lib/pengine/utils.c if (value) { value 1264 lib/pengine/utils.c if (value != NULL && action->fail_role == RSC_ROLE_UNKNOWN) { value 1265 lib/pengine/utils.c action->fail_role = text2role(value); value 1278 lib/pengine/utils.c value = g_hash_table_lookup(action->meta, XML_OP_ATTR_START_DELAY); value 1279 lib/pengine/utils.c if (value) { value 1280 lib/pengine/utils.c unpack_start_delay(value, action->meta); value 1284 lib/pengine/utils.c value = g_hash_table_lookup(action->meta, XML_OP_ATTR_ORIGIN); value 1285 lib/pengine/utils.c if (unpack_interval_origin(value, xml_obj, interval_ms, data_set->now, value 1305 lib/pengine/utils.c const char *value = NULL; value 1318 lib/pengine/utils.c value = crm_element_value(operation, "enabled"); value 1319 lib/pengine/utils.c if (!include_disabled && value && crm_is_true(value) == FALSE) { value 1411 lib/pengine/utils.c print_str_str(gpointer key, gpointer value, gpointer user_data) value 1415 lib/pengine/utils.c user_data == NULL ? "" : ": ", (char *)key, (char *)value); value 1448 lib/pengine/utils.c const char *value = NULL; value 1457 lib/pengine/utils.c value = g_hash_table_lookup(action->meta, XML_LRM_ATTR_INTERVAL_MS); value 1458 lib/pengine/utils.c if (value == NULL) { value 1460 lib/pengine/utils.c } else if (pcmk__str_eq(value, "0", pcmk__str_casei)) { value 1848 lib/pengine/utils.c const char *value = g_hash_table_lookup(rsc->meta, XML_RSC_ATTR_TARGET_ROLE); value 1852 lib/pengine/utils.c if (pcmk__str_eq(value, "started", pcmk__str_null_matches | pcmk__str_casei) value 1853 lib/pengine/utils.c || pcmk__str_eq("default", value, pcmk__str_casei)) { value 1857 lib/pengine/utils.c local_role = text2role(value); value 1860 lib/pengine/utils.c "because '%s' is not valid", rsc->id, value); value 1873 lib/pengine/utils.c "clones", rsc->id, value); value 2028 lib/pengine/utils.c char *value = NULL; value 2032 lib/pengine/utils.c while (g_hash_table_iter_next(&iter, (gpointer *) &key, (gpointer *) &value)) { value 2033 lib/pengine/utils.c crm_xml_add(params, key, value); value 568 lib/services/dbus.c const char *value, // Property value value 596 lib/services/dbus.c DBusBasicValue value; value 623 lib/services/dbus.c dbus_message_iter_get_basic(&variant_iter, &value); value 641 lib/services/dbus.c data->object, data->name, (value.str? value.str : "")); value 644 lib/services/dbus.c data->callback(data->name, (value.str? value.str : ""), data->userdata); value 647 lib/services/dbus.c output = strdup(value.str? value.str : ""); value 659 lib/services/dbus.c char *value = NULL; value 665 lib/services/dbus.c value = handle_query_result(reply, user_data); value 666 lib/services/dbus.c free(value); value 38 lib/services/pcmk-dbus.h void (*callback)(const char *name, const char *value, void *userdata), void *userdata, value 268 lib/services/services.c char *value = NULL; value 274 lib/services/services.c while (g_hash_table_iter_next(&iter, (gpointer *) & key, (gpointer *) & value) && value 281 lib/services/services.c op->opaque->args[index++] = strdup(value); value 363 lib/services/services_linux.c set_ocf_env(const char *key, const char *value, gpointer user_data) value 365 lib/services/services_linux.c if (setenv(key, value, 1) != 0) { value 366 lib/services/services_linux.c crm_perror(LOG_ERR, "setenv failed for key:%s and value:%s", key, value); value 371 lib/services/services_linux.c set_ocf_env_with_prefix(gpointer key, gpointer value, gpointer user_data) value 376 lib/services/services_linux.c set_ocf_env(buffer, value, user_data); value 380 lib/services/services_linux.c set_alert_env(gpointer key, gpointer value, gpointer user_data) value 384 lib/services/services_linux.c if (value != NULL) { value 385 lib/services/services_linux.c rc = setenv(key, value, 1); value 392 lib/services/services_linux.c (char*)key, (value? (char*)value : "")); value 394 lib/services/services_linux.c crm_trace("setenv %s=%s", (char*)key, (value? (char*)value : "")); value 443 lib/services/services_linux.c pipe_in_single_parameter(gpointer key, gpointer value, gpointer user_data) value 446 lib/services/services_linux.c char *buffer = crm_strdup_printf("%s=%s\n", (char *)key, (char *) value); value 90 lib/services/services_lsb.c lsb_meta_helper_get_value(const char *line, char **value, const char *prefix) value 92 lib/services/services_lsb.c if (!*value && pcmk__starts_with(line, prefix)) { value 93 lib/services/services_lsb.c *value = (char *)xmlEncodeEntitiesReentrant(NULL, BAD_CAST line+strlen(prefix)); value 127 lib/services/systemd.c void (*callback)(const char *name, const char *value, void *userdata), value 433 lib/services/systemd.c DBusBasicValue value; value 449 lib/services/systemd.c dbus_message_iter_get_basic(&elem, &value); value 450 lib/services/systemd.c if (value.str == NULL) { value 454 lib/services/systemd.c crm_trace("DBus ListUnitFiles listed: %s", value.str); value 456 lib/services/systemd.c match = systemd_unit_extension(value.str); value 460 lib/services/systemd.c value.str); value 465 lib/services/systemd.c basename = strrchr(value.str, '/'); value 469 lib/services/systemd.c basename = value.str; value 197 lib/services/upstart.c DBusBasicValue value; value 206 lib/services/upstart.c dbus_message_iter_get_basic(&unit, &value); value 208 lib/services/upstart.c if(value.str) { value 210 lib/services/upstart.c path = value.str; value 211 lib/services/upstart.c job = value.str; value 279 lib/services/upstart.c DBusBasicValue value; value 281 lib/services/upstart.c dbus_message_iter_get_basic(&unit, &value); value 283 lib/services/upstart.c if(value.str) { value 284 lib/services/upstart.c instance = strdup(value.str); value 29 replace/setenv.c setenv(const char *name, const char *value, int why) value 33 replace/setenv.c if (name && value) { value 34 replace/setenv.c char *envp = crm_strdup_printf("%s=%s", name, value); value 389 tools/crm_mon_print.c const char *value = NULL; value 394 tools/crm_mon_print.c value = pe_node_attribute_raw(data->node, name); value 400 tools/crm_mon_print.c data->out->message(data->out, "node-attribute", name, value, add_extra, value 467 tools/crm_mon_print.c gpointer key, value; value 480 tools/crm_mon_print.c while (g_hash_table_iter_next(&iter, &key, &value)) { value 481 tools/crm_mon_print.c pe_ticket_t *ticket = (pe_ticket_t *) value; value 567 tools/crm_mon_print.c gpointer key, value; value 570 tools/crm_mon_print.c while (g_hash_table_iter_next (&iter, &key, &value)) { value 743 tools/crm_resource.c char *value = NULL; value 745 tools/crm_resource.c if (pcmk_scan_nvpair(optarg, &name, &value) != 2) { value 751 tools/crm_resource.c g_hash_table_replace(options.validate_options, name, value); value 1550 tools/crm_resource.c char *value = calloc(1, strlen(*s)); value 1551 tools/crm_resource.c int rc = sscanf(*s, "%[^=]=%s", name, value); value 1554 tools/crm_resource.c g_hash_table_replace(options.override_params, name, value); value 1560 tools/crm_resource.c free(value); value 288 tools/crm_resource_print.c const char *value = NULL; value 312 tools/crm_resource_print.c value = g_hash_table_lookup(params, attr); value 313 tools/crm_resource_print.c if (value != NULL) { value 314 tools/crm_resource_print.c fprintf(stdout, "%s\n", value); value 329 tools/crm_resource_print.c const char *value = crm_element_value(rsc->xml, attr); value 331 tools/crm_resource_print.c if (value != NULL) { value 332 tools/crm_resource_print.c fprintf(stdout, "%s\n", value); value 80 tools/crm_resource_runtime.c const char *set_name, const char *attr_id, const char *attr_name, char **value) value 87 tools/crm_resource_runtime.c if(value) { value 88 tools/crm_resource_runtime.c *value = NULL; value 143 tools/crm_resource_runtime.c } else if(value) { value 147 tools/crm_resource_runtime.c *value = strdup(tmp); value 952 tools/crm_resource_runtime.c char *value = NULL; value 955 tools/crm_resource_runtime.c while (g_hash_table_iter_next(&iter, (gpointer *) & key, (gpointer *) & value)) { value 956 tools/crm_resource_runtime.c g_hash_table_insert(combined, strdup(key), strdup(value)); value 963 tools/crm_resource_runtime.c char *value = NULL; value 966 tools/crm_resource_runtime.c while (g_hash_table_iter_next(&iter, (gpointer *) & key, (gpointer *) & value)) { value 969 tools/crm_resource_runtime.c g_hash_table_insert(combined, crm_name, strdup(value)); value 1213 tools/crm_resource_runtime.c const char *value = g_hash_table_lookup(stop->meta, XML_ATTR_TIMEOUT); value 1215 tools/crm_resource_runtime.c max_delay = value? (int) crm_parse_ll(value, NULL) : -1; value 1748 tools/crm_resource_runtime.c char *value = NULL; value 1751 tools/crm_resource_runtime.c while (g_hash_table_iter_next(&iter, (gpointer *) & name, (gpointer *) & value)) { value 1753 tools/crm_resource_runtime.c rsc_name, name, value); value 1754 tools/crm_resource_runtime.c g_hash_table_replace(op->params, strdup(name), strdup(value)); value 88 tools/crm_ticket.c const char *value = NULL; value 94 tools/crm_ticket.c while (g_hash_table_iter_next(&iter, (void **)&name, (void **)&value)) { value 100 tools/crm_ticket.c print_date(crm_parse_int(value, 0)); value 102 tools/crm_ticket.c fprintf(stdout, "%s", value); value 336 tools/crm_ticket.c const char *value = NULL; value 343 tools/crm_ticket.c if (g_hash_table_lookup_extended(attr_set, "granted", NULL, (gpointer *) & value)) { value 344 tools/crm_ticket.c if (crm_is_true(value)) { value 379 tools/crm_ticket.c char *value = NULL; value 412 tools/crm_ticket.c while (g_hash_table_iter_next(&hash_iter, (gpointer *) & key, (gpointer *) & value)) { value 413 tools/crm_ticket.c crm_xml_add(ticket_state_xml, key, value); value 417 tools/crm_ticket.c && crm_is_true(value)) { value 939 tools/crm_ticket.c const char *value = NULL; value 947 tools/crm_ticket.c rc = get_ticket_state_attr(ticket_id, get_attr_name, &value, data_set); value 949 tools/crm_ticket.c fprintf(stdout, "%s\n", value); value 83 tools/ipmiservicelogd.c unsigned int raw_value, double value, void *cb_data, value 349 tools/ipmiservicelogd.c double value, void *cb_data, ipmi_event_t * event) value 274 tools/stonith_admin.c char *value = NULL; value 280 tools/stonith_admin.c rc = pcmk_scan_nvpair(optarg, &name, &value); value 287 tools/stonith_admin.c crm_info("Got: '%s'='%s'", name, value); value 288 tools/stonith_admin.c options.params = stonith_key_value_add(options.params, name, value); value 292 tools/stonith_admin.c free(value);