dev 846 daemons/fenced/fenced_commands.c xml2device_params(const char *name, xmlNode *dev) dev 848 daemons/fenced/fenced_commands.c GHashTable *params = xml2list(dev); dev 885 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, msg, LOG_ERR); dev 887 daemons/fenced/fenced_commands.c char *agent = crm_element_value_copy(dev, "agent"); dev 895 daemons/fenced/fenced_commands.c device->id = crm_element_value_copy(dev, XML_ATTR_ID); dev 897 daemons/fenced/fenced_commands.c device->namespace = crm_element_value_copy(dev, "namespace"); dev 898 daemons/fenced/fenced_commands.c device->params = xml2device_params(device->id, dev); dev 920 daemons/fenced/fenced_commands.c value = crm_element_value(dev, "rsc_provides"); dev 941 daemons/fenced/fenced_commands.c target_list_type(stonith_device_t * dev) dev 945 daemons/fenced/fenced_commands.c check_type = g_hash_table_lookup(dev->params, STONITH_ATTR_HOSTCHECK); dev 949 daemons/fenced/fenced_commands.c if (g_hash_table_lookup(dev->params, STONITH_ATTR_HOSTLIST)) { dev 951 daemons/fenced/fenced_commands.c } else if (g_hash_table_lookup(dev->params, STONITH_ATTR_HOSTMAP)) { dev 953 daemons/fenced/fenced_commands.c } else if (pcmk_is_set(dev->flags, st_device_supports_list)) { dev 955 daemons/fenced/fenced_commands.c } else if (pcmk_is_set(dev->flags, st_device_supports_status)) { dev 1018 daemons/fenced/fenced_commands.c stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; dev 1023 daemons/fenced/fenced_commands.c if (!dev) { dev 1028 daemons/fenced/fenced_commands.c mainloop_set_trigger(dev->work); dev 1031 daemons/fenced/fenced_commands.c crm_trace("Host %s is not known by %s", search->host, dev->id); dev 1034 daemons/fenced/fenced_commands.c crm_trace("Host %s is known by %s", search->host, dev->id); dev 1038 daemons/fenced/fenced_commands.c crm_notice("Unknown result when testing if %s can fence %s: rc=%d", dev->id, search->host, dev 1041 daemons/fenced/fenced_commands.c search_devices_record_result(search, dev->id, can); dev 1049 daemons/fenced/fenced_commands.c stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; dev 1059 daemons/fenced/fenced_commands.c if (!dev) { dev 1064 daemons/fenced/fenced_commands.c mainloop_set_trigger(dev->work); dev 1067 daemons/fenced/fenced_commands.c if (rc != 0 && !dev->targets) { dev 1068 daemons/fenced/fenced_commands.c crm_notice("Disabling port list queries for %s (%d): %s", dev->id, rc, output); dev 1070 daemons/fenced/fenced_commands.c g_hash_table_replace(dev->params, strdup(STONITH_ATTR_HOSTCHECK), strdup("status")); dev 1072 daemons/fenced/fenced_commands.c g_list_free_full(dev->targets, free); dev 1073 daemons/fenced/fenced_commands.c dev->targets = NULL; dev 1075 daemons/fenced/fenced_commands.c crm_info("Refreshing port list for %s", dev->id); dev 1076 daemons/fenced/fenced_commands.c g_list_free_full(dev->targets, free); dev 1077 daemons/fenced/fenced_commands.c dev->targets = stonith__parse_targets(output); dev 1078 daemons/fenced/fenced_commands.c dev->targets_age = time(NULL); dev 1081 daemons/fenced/fenced_commands.c if (dev->targets) { dev 1082 daemons/fenced/fenced_commands.c const char *alias = g_hash_table_lookup(dev->aliases, search->host); dev 1087 daemons/fenced/fenced_commands.c if (string_in_list(dev->targets, alias)) { dev 1091 daemons/fenced/fenced_commands.c search_devices_record_result(search, dev->id, can_fence); dev 1520 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, msg, LOG_ERR); dev 1522 daemons/fenced/fenced_commands.c const char *id = crm_element_value(dev, F_STONITH_DEVICE); dev 1610 daemons/fenced/fenced_commands.c can_fence_host_with_device(stonith_device_t * dev, struct device_search_s *search) dev 1617 daemons/fenced/fenced_commands.c CRM_LOG_ASSERT(dev != NULL); dev 1619 daemons/fenced/fenced_commands.c if (dev == NULL) { dev 1633 daemons/fenced/fenced_commands.c if (!localhost_is_eligible(dev, "reboot", host, search->allow_suicide) dev 1634 daemons/fenced/fenced_commands.c && !localhost_is_eligible(dev, "off", host, search->allow_suicide) dev 1635 daemons/fenced/fenced_commands.c && !localhost_is_eligible(dev, "on", host, FALSE)) { dev 1638 daemons/fenced/fenced_commands.c } else if (!localhost_is_eligible(dev, search->action, host, dev 1643 daemons/fenced/fenced_commands.c alias = g_hash_table_lookup(dev->aliases, host); dev 1648 daemons/fenced/fenced_commands.c check_type = target_list_type(dev); dev 1659 daemons/fenced/fenced_commands.c if (string_in_list(dev->targets, host)) { dev 1661 daemons/fenced/fenced_commands.c } else if (g_hash_table_lookup(dev->params, STONITH_ATTR_HOSTMAP) dev 1662 daemons/fenced/fenced_commands.c && g_hash_table_lookup(dev->aliases, host)) { dev 1669 daemons/fenced/fenced_commands.c if (dev->targets == NULL || dev->targets_age + 60 < now) { dev 1671 daemons/fenced/fenced_commands.c check_type, dev->id, search->host, search->action); dev 1673 daemons/fenced/fenced_commands.c schedule_internal_command(__func__, dev, "list", NULL, dev 1680 daemons/fenced/fenced_commands.c if (string_in_list(dev->targets, alias)) { dev 1686 daemons/fenced/fenced_commands.c check_type, dev->id, search->host, search->action); dev 1687 daemons/fenced/fenced_commands.c schedule_internal_command(__func__, dev, "status", search->host, dev 1698 daemons/fenced/fenced_commands.c dev->id, (can? "" : " not"), search->action, host, dev 1702 daemons/fenced/fenced_commands.c dev->id, (can? "" : " not"), search->action, host, alias, dev 1707 daemons/fenced/fenced_commands.c search_devices_record_result(search, dev ? dev->id : NULL, can); dev 1713 daemons/fenced/fenced_commands.c stonith_device_t *dev = value; dev 1716 daemons/fenced/fenced_commands.c can_fence_host_with_device(dev, search); dev 1898 daemons/fenced/fenced_commands.c xmlNode *dev = NULL; dev 1917 daemons/fenced/fenced_commands.c dev = create_xml_node(list, F_STONITH_DEVICE); dev 1918 daemons/fenced/fenced_commands.c crm_xml_add(dev, XML_ATTR_ID, device->id); dev 1919 daemons/fenced/fenced_commands.c crm_xml_add(dev, "namespace", device->namespace); dev 1920 daemons/fenced/fenced_commands.c crm_xml_add(dev, "agent", device->agent); dev 1921 daemons/fenced/fenced_commands.c crm_xml_add_int(dev, F_STONITH_DEVICE_VERIFIED, device->verified); dev 1934 daemons/fenced/fenced_commands.c add_action_specific_attributes(dev, action, device); dev 1947 daemons/fenced/fenced_commands.c add_disallowed(dev, action, device, query->target, dev 1949 daemons/fenced/fenced_commands.c add_action_reply(dev, "off", device, query->target, dev 1951 daemons/fenced/fenced_commands.c add_action_reply(dev, "on", device, query->target, FALSE); dev 1956 daemons/fenced/fenced_commands.c xmlNode *attrs = create_xml_node(dev, XML_TAG_ATTRS); dev 1992 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_ACTION, msg, LOG_NEVER); dev 1995 daemons/fenced/fenced_commands.c if (dev) { dev 1996 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); dev 1998 daemons/fenced/fenced_commands.c target = crm_element_value(dev, F_STONITH_TARGET); dev 1999 daemons/fenced/fenced_commands.c action = crm_element_value(dev, F_STONITH_ACTION); dev 2306 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, msg, LOG_ERR); dev 2312 daemons/fenced/fenced_commands.c device_id = crm_element_value(dev, F_STONITH_DEVICE); dev 2322 daemons/fenced/fenced_commands.c const char *host = crm_element_value(dev, F_STONITH_TARGET); dev 2490 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_ACTION, request, LOG_TRACE); dev 2497 daemons/fenced/fenced_commands.c if (dev) { dev 2498 daemons/fenced/fenced_commands.c target = crm_element_value(dev, F_STONITH_TARGET); dev 2625 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_TRACE); dev 2630 daemons/fenced/fenced_commands.c crm_element_value(dev, F_STONITH_ACTION), dev 2631 daemons/fenced/fenced_commands.c crm_element_value(dev, F_STONITH_TARGET)); dev 2644 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_TRACE); dev 2645 daemons/fenced/fenced_commands.c const char *target = crm_element_value(dev, F_STONITH_TARGET); dev 2653 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_TRACE); dev 2654 daemons/fenced/fenced_commands.c const char *target = crm_element_value(dev, F_STONITH_TARGET); dev 2655 daemons/fenced/fenced_commands.c const char *action = crm_element_value(dev, F_STONITH_ACTION); dev 2656 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); dev 2664 daemons/fenced/fenced_commands.c crm_element_value_int(dev, F_STONITH_TOLERANCE, &tolerance); dev 2727 daemons/fenced/fenced_commands.c xmlNode *dev = get_xpath_object("//" F_STONITH_DEVICE, request, LOG_ERR); dev 2728 daemons/fenced/fenced_commands.c const char *device_id = crm_element_value(dev, XML_ATTR_ID); dev 405 daemons/fenced/fenced_history.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, msg, LOG_NEVER); dev 408 daemons/fenced/fenced_history.c if (dev) { dev 409 daemons/fenced/fenced_history.c target = crm_element_value(dev, F_STONITH_TARGET); dev 959 daemons/fenced/fenced_remote.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, msg, LOG_ERR); dev 966 daemons/fenced/fenced_remote.c crm_element_value(dev, F_STONITH_TARGET)); dev 989 daemons/fenced/fenced_remote.c xmlNode *dev = get_xpath_object("//@" F_STONITH_TARGET, request, LOG_NEVER); dev 997 daemons/fenced/fenced_remote.c if (peer && dev) { dev 998 daemons/fenced/fenced_remote.c const char *op_id = crm_element_value(dev, F_STONITH_REMOTE_OP_ID); dev 1015 daemons/fenced/fenced_remote.c if (peer && dev) { dev 1016 daemons/fenced/fenced_remote.c op->id = crm_element_value_copy(dev, F_STONITH_REMOTE_OP_ID); dev 1027 daemons/fenced/fenced_remote.c op->action = crm_element_value_copy(dev, F_STONITH_ACTION); dev 1028 daemons/fenced/fenced_remote.c op->originator = crm_element_value_copy(dev, F_STONITH_ORIGIN); dev 1029 daemons/fenced/fenced_remote.c op->delegate = crm_element_value_copy(dev, F_STONITH_DELEGATE); /* May not be set */ dev 1053 daemons/fenced/fenced_remote.c op->target = crm_element_value_copy(dev, F_STONITH_TARGET); dev 1061 daemons/fenced/fenced_remote.c (peer && dev)? "Recorded" : "Generated", op->id, op->action, dev 1899 daemons/fenced/fenced_remote.c xmlNode *dev = get_xpath_object("//@" F_STONITH_REMOTE_OP_ID, msg, LOG_ERR); dev 1901 daemons/fenced/fenced_remote.c CRM_CHECK(dev != NULL, return -EPROTO); dev 1903 daemons/fenced/fenced_remote.c id = crm_element_value(dev, F_STONITH_REMOTE_OP_ID); dev 1906 daemons/fenced/fenced_remote.c dev = get_xpath_object("//@" F_STONITH_AVAILABLE_DEVICES, msg, LOG_ERR); dev 1907 daemons/fenced/fenced_remote.c CRM_CHECK(dev != NULL, return -EPROTO); dev 1908 daemons/fenced/fenced_remote.c crm_element_value_int(dev, F_STONITH_AVAILABLE_DEVICES, &ndevices); dev 1931 daemons/fenced/fenced_remote.c result = add_result(op, host, ndevices, dev); dev 1994 daemons/fenced/fenced_remote.c xmlNode *dev = get_xpath_object("//@" F_STONITH_REMOTE_OP_ID, msg, LOG_ERR); dev 1996 daemons/fenced/fenced_remote.c CRM_CHECK(dev != NULL, return -EPROTO); dev 1998 daemons/fenced/fenced_remote.c id = crm_element_value(dev, F_STONITH_REMOTE_OP_ID); dev 2001 daemons/fenced/fenced_remote.c dev = get_xpath_object("//@" F_STONITH_RC, msg, LOG_ERR); dev 2002 daemons/fenced/fenced_remote.c CRM_CHECK(dev != NULL, return -EPROTO); dev 2004 daemons/fenced/fenced_remote.c crm_element_value_int(dev, F_STONITH_RC, &rc); dev 2006 daemons/fenced/fenced_remote.c device = crm_element_value(dev, F_STONITH_DEVICE); dev 2014 daemons/fenced/fenced_remote.c const char *client_id = crm_element_value(dev, F_STONITH_CLIENTID); dev 2016 daemons/fenced/fenced_remote.c op = create_remote_stonith_op(client_id, dev, TRUE);