dev 872 daemons/fenced/fenced_commands.c xml2device_params(const char *name, xmlNode *dev) dev 874 daemons/fenced/fenced_commands.c GHashTable *params = xml2list(dev); dev 911 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, msg, LOG_ERR); dev 913 daemons/fenced/fenced_commands.c char *agent = crm_element_value_copy(dev, "agent"); dev 921 daemons/fenced/fenced_commands.c device->id = crm_element_value_copy(dev, XML_ATTR_ID); dev 923 daemons/fenced/fenced_commands.c device->namespace = crm_element_value_copy(dev, "namespace"); dev 924 daemons/fenced/fenced_commands.c device->params = xml2device_params(device->id, dev); dev 954 daemons/fenced/fenced_commands.c value = crm_element_value(dev, "rsc_provides"); dev 975 daemons/fenced/fenced_commands.c target_list_type(stonith_device_t * dev) dev 979 daemons/fenced/fenced_commands.c check_type = g_hash_table_lookup(dev->params, PCMK_STONITH_HOST_CHECK); dev 983 daemons/fenced/fenced_commands.c if (g_hash_table_lookup(dev->params, PCMK_STONITH_HOST_LIST)) { dev 985 daemons/fenced/fenced_commands.c } else if (g_hash_table_lookup(dev->params, PCMK_STONITH_HOST_MAP)) { dev 987 daemons/fenced/fenced_commands.c } else if (pcmk_is_set(dev->flags, st_device_supports_list)) { dev 989 daemons/fenced/fenced_commands.c } else if (pcmk_is_set(dev->flags, st_device_supports_status)) { dev 1052 daemons/fenced/fenced_commands.c stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; dev 1057 daemons/fenced/fenced_commands.c if (!dev) { dev 1062 daemons/fenced/fenced_commands.c mainloop_set_trigger(dev->work); dev 1065 daemons/fenced/fenced_commands.c crm_trace("Host %s is not known by %s", search->host, dev->id); dev 1068 daemons/fenced/fenced_commands.c crm_trace("Host %s is known by %s", search->host, dev->id); dev 1072 daemons/fenced/fenced_commands.c crm_notice("Unknown result when testing if %s can fence %s: rc=%d", dev->id, search->host, dev 1075 daemons/fenced/fenced_commands.c search_devices_record_result(search, dev->id, can); dev 1083 daemons/fenced/fenced_commands.c stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; dev 1093 daemons/fenced/fenced_commands.c if (!dev) { dev 1098 daemons/fenced/fenced_commands.c mainloop_set_trigger(dev->work); dev 1101 daemons/fenced/fenced_commands.c if (rc != 0 && !dev->targets) { dev 1103 daemons/fenced/fenced_commands.c CRM_XS " rc=%d", dev->id, output, rc); dev 1105 daemons/fenced/fenced_commands.c g_hash_table_replace(dev->params, dev 1108 daemons/fenced/fenced_commands.c g_list_free_full(dev->targets, free); dev 1109 daemons/fenced/fenced_commands.c dev->targets = NULL; dev 1111 daemons/fenced/fenced_commands.c crm_info("Refreshing port list for %s", dev->id); dev 1112 daemons/fenced/fenced_commands.c g_list_free_full(dev->targets, free); dev 1113 daemons/fenced/fenced_commands.c dev->targets = stonith__parse_targets(output); dev 1114 daemons/fenced/fenced_commands.c dev->targets_age = time(NULL); dev 1117 daemons/fenced/fenced_commands.c if (dev->targets) { dev 1118 daemons/fenced/fenced_commands.c const char *alias = g_hash_table_lookup(dev->aliases, search->host); dev 1123 daemons/fenced/fenced_commands.c if (string_in_list(dev->targets, alias)) { dev 1127 daemons/fenced/fenced_commands.c search_devices_record_result(search, dev->id, can_fence); dev 1580 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, msg, LOG_ERR); dev 1582 daemons/fenced/fenced_commands.c const char *id = crm_element_value(dev, F_STONITH_DEVICE); dev 1672 daemons/fenced/fenced_commands.c can_fence_host_with_device(stonith_device_t * dev, struct device_search_s *search) dev 1679 daemons/fenced/fenced_commands.c CRM_LOG_ASSERT(dev != NULL); dev 1681 daemons/fenced/fenced_commands.c if (dev == NULL) { dev 1695 daemons/fenced/fenced_commands.c if (!localhost_is_eligible(dev, "reboot", host, search->allow_suicide) dev 1696 daemons/fenced/fenced_commands.c && !localhost_is_eligible(dev, "off", host, search->allow_suicide) dev 1697 daemons/fenced/fenced_commands.c && !localhost_is_eligible(dev, "on", host, FALSE)) { dev 1700 daemons/fenced/fenced_commands.c } else if (!localhost_is_eligible(dev, search->action, host, dev 1705 daemons/fenced/fenced_commands.c alias = g_hash_table_lookup(dev->aliases, host); dev 1710 daemons/fenced/fenced_commands.c check_type = target_list_type(dev); dev 1721 daemons/fenced/fenced_commands.c if (string_in_list(dev->targets, host)) { dev 1723 daemons/fenced/fenced_commands.c } else if (g_hash_table_lookup(dev->params, PCMK_STONITH_HOST_MAP) dev 1724 daemons/fenced/fenced_commands.c && g_hash_table_lookup(dev->aliases, host)) { dev 1731 daemons/fenced/fenced_commands.c if (dev->targets == NULL || dev->targets_age + 60 < now) { dev 1733 daemons/fenced/fenced_commands.c check_type, dev->id, search->host, search->action); dev 1735 daemons/fenced/fenced_commands.c schedule_internal_command(__func__, dev, "list", NULL, dev 1742 daemons/fenced/fenced_commands.c if (string_in_list(dev->targets, alias)) { dev 1748 daemons/fenced/fenced_commands.c check_type, dev->id, search->host, search->action); dev 1749 daemons/fenced/fenced_commands.c schedule_internal_command(__func__, dev, "status", search->host, dev 1760 daemons/fenced/fenced_commands.c dev->id, (can? "" : " not"), search->action, host, dev 1764 daemons/fenced/fenced_commands.c dev->id, (can? "" : " not"), search->action, host, alias, dev 1769 daemons/fenced/fenced_commands.c search_devices_record_result(search, dev ? dev->id : NULL, can); dev 1775 daemons/fenced/fenced_commands.c stonith_device_t *dev = value; dev 1778 daemons/fenced/fenced_commands.c can_fence_host_with_device(dev, search); dev 1962 daemons/fenced/fenced_commands.c xmlNode *dev = NULL; dev 1981 daemons/fenced/fenced_commands.c dev = create_xml_node(list, F_STONITH_DEVICE); dev 1982 daemons/fenced/fenced_commands.c crm_xml_add(dev, XML_ATTR_ID, device->id); dev 1983 daemons/fenced/fenced_commands.c crm_xml_add(dev, "namespace", device->namespace); dev 1984 daemons/fenced/fenced_commands.c crm_xml_add(dev, "agent", device->agent); dev 1985 daemons/fenced/fenced_commands.c crm_xml_add_int(dev, F_STONITH_DEVICE_VERIFIED, device->verified); dev 1998 daemons/fenced/fenced_commands.c add_action_specific_attributes(dev, action, device); dev 2011 daemons/fenced/fenced_commands.c add_disallowed(dev, action, device, query->target, dev 2013 daemons/fenced/fenced_commands.c add_action_reply(dev, "off", device, query->target, dev 2015 daemons/fenced/fenced_commands.c add_action_reply(dev, "on", device, query->target, FALSE); dev 2020 daemons/fenced/fenced_commands.c xmlNode *attrs = create_xml_node(dev, XML_TAG_ATTRS); dev 2059 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_ACTION, msg, LOG_NEVER); dev 2062 daemons/fenced/fenced_commands.c if (dev) { dev 2063 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); dev 2065 daemons/fenced/fenced_commands.c target = crm_element_value(dev, F_STONITH_TARGET); dev 2066 daemons/fenced/fenced_commands.c action = crm_element_value(dev, F_STONITH_ACTION); dev 2377 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, msg, LOG_ERR); dev 2383 daemons/fenced/fenced_commands.c device_id = crm_element_value(dev, F_STONITH_DEVICE); dev 2393 daemons/fenced/fenced_commands.c const char *host = crm_element_value(dev, F_STONITH_TARGET); dev 2564 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_ACTION, request, LOG_TRACE); dev 2571 daemons/fenced/fenced_commands.c if (dev) { dev 2572 daemons/fenced/fenced_commands.c target = crm_element_value(dev, F_STONITH_TARGET); dev 2697 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_TRACE); dev 2703 daemons/fenced/fenced_commands.c crm_element_value(dev, F_STONITH_ACTION), dev 2704 daemons/fenced/fenced_commands.c crm_element_value(dev, F_STONITH_TARGET)); dev 2717 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_TRACE); dev 2718 daemons/fenced/fenced_commands.c const char *target = crm_element_value(dev, F_STONITH_TARGET); dev 2726 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_TRACE); dev 2727 daemons/fenced/fenced_commands.c const char *target = crm_element_value(dev, F_STONITH_TARGET); dev 2728 daemons/fenced/fenced_commands.c const char *action = crm_element_value(dev, F_STONITH_ACTION); dev 2729 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); dev 2738 daemons/fenced/fenced_commands.c crm_element_value_int(dev, F_STONITH_TOLERANCE, &tolerance); dev 2802 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, request, LOG_ERR); dev 2803 daemons/fenced/fenced_commands.c const char *device_id = crm_element_value(dev, XML_ATTR_ID); dev 437 daemons/fenced/fenced_history.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, msg, LOG_NEVER); dev 440 daemons/fenced/fenced_history.c if (dev) { dev 441 daemons/fenced/fenced_history.c target = crm_element_value(dev, F_STONITH_TARGET); dev 976 daemons/fenced/fenced_remote.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, msg, LOG_ERR); dev 983 daemons/fenced/fenced_remote.c crm_element_value(dev, F_STONITH_TARGET)); dev 1006 daemons/fenced/fenced_remote.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_NEVER); dev 1014 daemons/fenced/fenced_remote.c if (peer && dev) { dev 1015 daemons/fenced/fenced_remote.c const char *op_id = crm_element_value(dev, F_STONITH_REMOTE_OP_ID); dev 1034 daemons/fenced/fenced_remote.c if (peer && dev) { dev 1035 daemons/fenced/fenced_remote.c op->id = crm_element_value_copy(dev, F_STONITH_REMOTE_OP_ID); dev 1044 daemons/fenced/fenced_remote.c op->action = crm_element_value_copy(dev, F_STONITH_ACTION); dev 1045 daemons/fenced/fenced_remote.c op->originator = crm_element_value_copy(dev, F_STONITH_ORIGIN); dev 1046 daemons/fenced/fenced_remote.c op->delegate = crm_element_value_copy(dev, F_STONITH_DELEGATE); /* May not be set */ dev 1070 daemons/fenced/fenced_remote.c op->target = crm_element_value_copy(dev, F_STONITH_TARGET); dev 1079 daemons/fenced/fenced_remote.c (peer && dev)? "Recorded" : "Generated", op->id, op->action, dev 1924 daemons/fenced/fenced_remote.c xmlNode *dev = get_xpath_object("//@" F_STONITH_REMOTE_OP_ID, msg, LOG_ERR); dev 1926 daemons/fenced/fenced_remote.c CRM_CHECK(dev != NULL, return -EPROTO); dev 1928 daemons/fenced/fenced_remote.c id = crm_element_value(dev, F_STONITH_REMOTE_OP_ID); dev 1931 daemons/fenced/fenced_remote.c dev = get_xpath_object("//@" F_STONITH_AVAILABLE_DEVICES, msg, LOG_ERR); dev 1932 daemons/fenced/fenced_remote.c CRM_CHECK(dev != NULL, return -EPROTO); dev 1933 daemons/fenced/fenced_remote.c crm_element_value_int(dev, F_STONITH_AVAILABLE_DEVICES, &ndevices); dev 1956 daemons/fenced/fenced_remote.c result = add_result(op, host, ndevices, dev); dev 2022 daemons/fenced/fenced_remote.c xmlNode *dev = get_xpath_object("//@" F_STONITH_REMOTE_OP_ID, msg, LOG_ERR); dev 2024 daemons/fenced/fenced_remote.c CRM_CHECK(dev != NULL, return -EPROTO); dev 2026 daemons/fenced/fenced_remote.c id = crm_element_value(dev, F_STONITH_REMOTE_OP_ID); dev 2029 daemons/fenced/fenced_remote.c dev = get_xpath_object("//@" F_STONITH_RC, msg, LOG_ERR); dev 2030 daemons/fenced/fenced_remote.c CRM_CHECK(dev != NULL, return -EPROTO); dev 2032 daemons/fenced/fenced_remote.c crm_element_value_int(dev, F_STONITH_RC, &rc); dev 2034 daemons/fenced/fenced_remote.c device = crm_element_value(dev, F_STONITH_DEVICE); dev 2042 daemons/fenced/fenced_remote.c const char *client_id = crm_element_value(dev, F_STONITH_CLIENTID); dev 2044 daemons/fenced/fenced_remote.c op = create_remote_stonith_op(client_id, dev, TRUE);