dev 882 daemons/fenced/fenced_commands.c xml2device_params(const char *name, xmlNode *dev) dev 884 daemons/fenced/fenced_commands.c GHashTable *params = xml2list(dev); dev 918 daemons/fenced/fenced_commands.c target_list_type(stonith_device_t * dev) dev 922 daemons/fenced/fenced_commands.c check_type = g_hash_table_lookup(dev->params, PCMK_STONITH_HOST_CHECK); dev 926 daemons/fenced/fenced_commands.c if (g_hash_table_lookup(dev->params, PCMK_STONITH_HOST_LIST)) { dev 928 daemons/fenced/fenced_commands.c } else if (g_hash_table_lookup(dev->params, PCMK_STONITH_HOST_MAP)) { dev 930 daemons/fenced/fenced_commands.c } else if (pcmk_is_set(dev->flags, st_device_supports_list)) { dev 932 daemons/fenced/fenced_commands.c } else if (pcmk_is_set(dev->flags, st_device_supports_status)) { dev 946 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, msg, LOG_ERR); dev 948 daemons/fenced/fenced_commands.c char *agent = crm_element_value_copy(dev, "agent"); dev 956 daemons/fenced/fenced_commands.c device->id = crm_element_value_copy(dev, XML_ATTR_ID); dev 958 daemons/fenced/fenced_commands.c device->namespace = crm_element_value_copy(dev, "namespace"); dev 959 daemons/fenced/fenced_commands.c device->params = xml2device_params(device->id, dev); dev 1003 daemons/fenced/fenced_commands.c value = crm_element_value(dev, "rsc_provides"); dev 1076 daemons/fenced/fenced_commands.c stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; dev 1081 daemons/fenced/fenced_commands.c if (!dev) { dev 1086 daemons/fenced/fenced_commands.c mainloop_set_trigger(dev->work); dev 1089 daemons/fenced/fenced_commands.c crm_trace("Host %s is not known by %s", search->host, dev->id); dev 1092 daemons/fenced/fenced_commands.c crm_trace("Host %s is known by %s", search->host, dev->id); dev 1096 daemons/fenced/fenced_commands.c crm_notice("Unknown result when testing if %s can fence %s: rc=%d", dev->id, search->host, dev 1099 daemons/fenced/fenced_commands.c search_devices_record_result(search, dev->id, can); dev 1107 daemons/fenced/fenced_commands.c stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; dev 1117 daemons/fenced/fenced_commands.c if (!dev) { dev 1122 daemons/fenced/fenced_commands.c mainloop_set_trigger(dev->work); dev 1125 daemons/fenced/fenced_commands.c if (rc != 0 && !dev->targets) { dev 1126 daemons/fenced/fenced_commands.c if (g_hash_table_lookup(dev->params, PCMK_STONITH_HOST_CHECK) == NULL) { dev 1130 daemons/fenced/fenced_commands.c crm_notice("Disabling port list queries for %s (%d): %s", dev->id, rc, output); dev 1131 daemons/fenced/fenced_commands.c g_hash_table_replace(dev->params, dev 1135 daemons/fenced/fenced_commands.c crm_info("Refreshing port list for %s", dev->id); dev 1136 daemons/fenced/fenced_commands.c g_list_free_full(dev->targets, free); dev 1137 daemons/fenced/fenced_commands.c dev->targets = stonith__parse_targets(output); dev 1138 daemons/fenced/fenced_commands.c dev->targets_age = time(NULL); dev 1141 daemons/fenced/fenced_commands.c if (dev->targets) { dev 1142 daemons/fenced/fenced_commands.c const char *alias = g_hash_table_lookup(dev->aliases, search->host); dev 1147 daemons/fenced/fenced_commands.c if (string_in_list(dev->targets, alias)) { dev 1151 daemons/fenced/fenced_commands.c search_devices_record_result(search, dev->id, can_fence); dev 1604 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, msg, LOG_ERR); dev 1606 daemons/fenced/fenced_commands.c const char *id = crm_element_value(dev, F_STONITH_DEVICE); dev 1696 daemons/fenced/fenced_commands.c can_fence_host_with_device(stonith_device_t * dev, struct device_search_s *search) dev 1703 daemons/fenced/fenced_commands.c CRM_LOG_ASSERT(dev != NULL); dev 1705 daemons/fenced/fenced_commands.c if (dev == NULL) { dev 1719 daemons/fenced/fenced_commands.c if (!localhost_is_eligible(dev, "reboot", host, search->allow_suicide) dev 1720 daemons/fenced/fenced_commands.c && !localhost_is_eligible(dev, "off", host, search->allow_suicide) dev 1721 daemons/fenced/fenced_commands.c && !localhost_is_eligible(dev, "on", host, FALSE)) { dev 1724 daemons/fenced/fenced_commands.c } else if (!localhost_is_eligible(dev, search->action, host, dev 1729 daemons/fenced/fenced_commands.c alias = g_hash_table_lookup(dev->aliases, host); dev 1734 daemons/fenced/fenced_commands.c check_type = target_list_type(dev); dev 1745 daemons/fenced/fenced_commands.c if (string_in_list(dev->targets, host)) { dev 1747 daemons/fenced/fenced_commands.c } else if (g_hash_table_lookup(dev->params, PCMK_STONITH_HOST_MAP) dev 1748 daemons/fenced/fenced_commands.c && g_hash_table_lookup(dev->aliases, host)) { dev 1755 daemons/fenced/fenced_commands.c if (dev->targets == NULL || dev->targets_age + 60 < now) { dev 1757 daemons/fenced/fenced_commands.c check_type, dev->id, search->host, search->action); dev 1759 daemons/fenced/fenced_commands.c schedule_internal_command(__func__, dev, "list", NULL, dev 1766 daemons/fenced/fenced_commands.c if (string_in_list(dev->targets, alias)) { dev 1772 daemons/fenced/fenced_commands.c check_type, dev->id, search->host, search->action); dev 1773 daemons/fenced/fenced_commands.c schedule_internal_command(__func__, dev, "status", search->host, dev 1784 daemons/fenced/fenced_commands.c dev->id, (can? "" : " not"), search->action, host, dev 1788 daemons/fenced/fenced_commands.c dev->id, (can? "" : " not"), search->action, host, alias, dev 1793 daemons/fenced/fenced_commands.c search_devices_record_result(search, dev ? dev->id : NULL, can); dev 1799 daemons/fenced/fenced_commands.c stonith_device_t *dev = value; dev 1802 daemons/fenced/fenced_commands.c can_fence_host_with_device(dev, search); dev 1986 daemons/fenced/fenced_commands.c xmlNode *dev = NULL; dev 2005 daemons/fenced/fenced_commands.c dev = create_xml_node(list, F_STONITH_DEVICE); dev 2006 daemons/fenced/fenced_commands.c crm_xml_add(dev, XML_ATTR_ID, device->id); dev 2007 daemons/fenced/fenced_commands.c crm_xml_add(dev, "namespace", device->namespace); dev 2008 daemons/fenced/fenced_commands.c crm_xml_add(dev, "agent", device->agent); dev 2009 daemons/fenced/fenced_commands.c crm_xml_add_int(dev, F_STONITH_DEVICE_VERIFIED, device->verified); dev 2022 daemons/fenced/fenced_commands.c add_action_specific_attributes(dev, action, device); dev 2035 daemons/fenced/fenced_commands.c add_disallowed(dev, action, device, query->target, dev 2037 daemons/fenced/fenced_commands.c add_action_reply(dev, "off", device, query->target, dev 2039 daemons/fenced/fenced_commands.c add_action_reply(dev, "on", device, query->target, FALSE); dev 2044 daemons/fenced/fenced_commands.c xmlNode *attrs = create_xml_node(dev, XML_TAG_ATTRS); dev 2083 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_ACTION, msg, LOG_NEVER); dev 2086 daemons/fenced/fenced_commands.c if (dev) { dev 2087 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); dev 2089 daemons/fenced/fenced_commands.c target = crm_element_value(dev, F_STONITH_TARGET); dev 2090 daemons/fenced/fenced_commands.c action = crm_element_value(dev, F_STONITH_ACTION); dev 2401 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, msg, LOG_ERR); dev 2407 daemons/fenced/fenced_commands.c device_id = crm_element_value(dev, F_STONITH_DEVICE); dev 2417 daemons/fenced/fenced_commands.c const char *host = crm_element_value(dev, F_STONITH_TARGET); dev 2588 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_ACTION, request, LOG_TRACE); dev 2595 daemons/fenced/fenced_commands.c if (dev) { dev 2596 daemons/fenced/fenced_commands.c target = crm_element_value(dev, F_STONITH_TARGET); dev 2721 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_TRACE); dev 2727 daemons/fenced/fenced_commands.c crm_element_value(dev, F_STONITH_ACTION), dev 2728 daemons/fenced/fenced_commands.c crm_element_value(dev, F_STONITH_TARGET)); dev 2741 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_TRACE); dev 2742 daemons/fenced/fenced_commands.c const char *target = crm_element_value(dev, F_STONITH_TARGET); dev 2750 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_TRACE); dev 2751 daemons/fenced/fenced_commands.c const char *target = crm_element_value(dev, F_STONITH_TARGET); dev 2752 daemons/fenced/fenced_commands.c const char *action = crm_element_value(dev, F_STONITH_ACTION); dev 2753 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); dev 2762 daemons/fenced/fenced_commands.c crm_element_value_int(dev, F_STONITH_TOLERANCE, &tolerance); dev 2826 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, request, LOG_ERR); dev 2827 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);