device 69 daemons/fenced/fenced_commands.c static void search_devices_record_result(struct device_search_s *search, const char *device, device 93 daemons/fenced/fenced_commands.c char *device; device 115 daemons/fenced/fenced_commands.c is_action_required(const char *action, stonith_device_t *device) device 117 daemons/fenced/fenced_commands.c return device && device->automatic_unfencing && pcmk__str_eq(action, "on", device 122 daemons/fenced/fenced_commands.c get_action_delay_max(stonith_device_t * device, const char * action) device 131 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, STONITH_ATTR_DELAY_MAX); device 140 daemons/fenced/fenced_commands.c get_action_delay_base(stonith_device_t * device, const char * action) device 149 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, STONITH_ATTR_DELAY_BASE); device 178 daemons/fenced/fenced_commands.c get_action_timeout(stonith_device_t * device, const char *action, int default_timeout) device 180 daemons/fenced/fenced_commands.c if (action && device && device->params) { device 188 daemons/fenced/fenced_commands.c && !pcmk_is_set(device->flags, st_device_supports_reboot)) { device 190 daemons/fenced/fenced_commands.c device->id); device 196 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, buffer); device 218 daemons/fenced/fenced_commands.c free(cmd->device); device 256 daemons/fenced/fenced_commands.c cmd->device = crm_element_value_copy(op, F_STONITH_DEVICE); device 267 daemons/fenced/fenced_commands.c get_action_limit(stonith_device_t * device) device 272 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, STONITH_ATTR_ACTION_LIMIT); device 285 daemons/fenced/fenced_commands.c get_active_cmds(stonith_device_t * device) device 291 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return 0); device 298 daemons/fenced/fenced_commands.c if (cmd->active_on == device) { device 310 daemons/fenced/fenced_commands.c stonith_device_t * device = device 316 daemons/fenced/fenced_commands.c CRM_ASSERT(device); device 319 daemons/fenced/fenced_commands.c device->id, pid, cmd->timeout); device 320 daemons/fenced/fenced_commands.c cmd->active_on = device; device 325 daemons/fenced/fenced_commands.c stonith_device_execute(stonith_device_t * device) device 337 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return FALSE); device 339 daemons/fenced/fenced_commands.c active_cmds = get_active_cmds(device); device 340 daemons/fenced/fenced_commands.c action_limit = get_action_limit(device); device 343 daemons/fenced/fenced_commands.c device->id, action_limit, active_cmds, active_cmds > 1 ? "s" : ""); device 347 daemons/fenced/fenced_commands.c for (gIter = device->pending_ops; gIter != NULL; gIter = gIterNext) { device 357 daemons/fenced/fenced_commands.c device->id, pending_op->start_delay); device 361 daemons/fenced/fenced_commands.c device->pending_ops = g_list_remove_link(device->pending_ops, gIter); device 369 daemons/fenced/fenced_commands.c crm_trace("Nothing further to do for %s for now", device->id); device 373 daemons/fenced/fenced_commands.c if(pcmk__str_eq(device->agent, STONITH_WATCHDOG_AGENT, pcmk__str_casei)) { device 390 daemons/fenced/fenced_commands.c if (pcmk__substitute_secrets(device->id, device->params) != pcmk_rc_ok) { device 394 daemons/fenced/fenced_commands.c crm_info("proceeding with the stop operation for %s", device->id); device 398 daemons/fenced/fenced_commands.c "considering resource not configured", device->id); device 408 daemons/fenced/fenced_commands.c && !pcmk_is_set(device->flags, st_device_supports_reboot)) { device 410 daemons/fenced/fenced_commands.c crm_warn("Agent '%s' does not advertise support for 'reboot', performing 'off' action instead", device->agent); device 414 daemons/fenced/fenced_commands.c if (pcmk_is_set(device->flags, st_device_supports_parameter_port)) { device 417 daemons/fenced/fenced_commands.c } else if (pcmk_is_set(device->flags, st_device_supports_parameter_plug)) { device 421 daemons/fenced/fenced_commands.c action = stonith_action_create(device->agent, device 425 daemons/fenced/fenced_commands.c cmd->timeout, device->params, device 426 daemons/fenced/fenced_commands.c device->aliases, host_arg); device 430 daemons/fenced/fenced_commands.c cmd->activating_on = device; device 437 daemons/fenced/fenced_commands.c device->id, pcmk_strerror(exec_rc), exec_rc); device 446 daemons/fenced/fenced_commands.c if (device->pending_ops) { device 447 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 462 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 465 daemons/fenced/fenced_commands.c device = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; device 467 daemons/fenced/fenced_commands.c if (device) { device 468 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 475 daemons/fenced/fenced_commands.c schedule_stonith_command(async_command_t * cmd, stonith_device_t * device) device 482 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return); device 484 daemons/fenced/fenced_commands.c if (cmd->device) { device 485 daemons/fenced/fenced_commands.c free(cmd->device); device 488 daemons/fenced/fenced_commands.c if (device->include_nodeid && cmd->victim) { device 494 daemons/fenced/fenced_commands.c cmd->device = strdup(device->id); device 495 daemons/fenced/fenced_commands.c cmd->timeout = get_action_timeout(device, cmd->action, cmd->default_timeout); device 501 daemons/fenced/fenced_commands.c device->id, cmd->origin, cmd->remote_op_id, cmd->timeout); device 506 daemons/fenced/fenced_commands.c device->id, cmd->client, cmd->timeout); device 509 daemons/fenced/fenced_commands.c device->pending_ops = g_list_append(device->pending_ops, cmd); device 510 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 517 daemons/fenced/fenced_commands.c delay_max = get_action_delay_max(device, cmd->action); device 518 daemons/fenced/fenced_commands.c delay_base = get_action_delay_base(device, cmd->action); device 525 daemons/fenced/fenced_commands.c delay_base, delay_max, cmd->action, device->id); device 540 daemons/fenced/fenced_commands.c device->id, cmd->start_delay, cmd->timeout, device 551 daemons/fenced/fenced_commands.c stonith_device_t *device = data; device 553 daemons/fenced/fenced_commands.c g_hash_table_destroy(device->params); device 554 daemons/fenced/fenced_commands.c g_hash_table_destroy(device->aliases); device 556 daemons/fenced/fenced_commands.c for (gIter = device->pending_ops; gIter != NULL; gIter = gIter->next) { device 559 daemons/fenced/fenced_commands.c crm_warn("Removal of device '%s' purged operation '%s'", device->id, cmd->action); device 562 daemons/fenced/fenced_commands.c g_list_free(device->pending_ops); device 564 daemons/fenced/fenced_commands.c g_list_free_full(device->targets, free); device 566 daemons/fenced/fenced_commands.c mainloop_destroy_trigger(device->work); device 568 daemons/fenced/fenced_commands.c free_xml(device->agent_metadata); device 569 daemons/fenced/fenced_commands.c free(device->namespace); device 570 daemons/fenced/fenced_commands.c free(device->on_target_actions); device 571 daemons/fenced/fenced_commands.c free(device->agent); device 572 daemons/fenced/fenced_commands.c free(device->id); device 573 daemons/fenced/fenced_commands.c free(device); device 756 daemons/fenced/fenced_commands.c read_action_metadata(stonith_device_t *device) device 762 daemons/fenced/fenced_commands.c if (device->agent_metadata == NULL) { device 766 daemons/fenced/fenced_commands.c xpath = xpath_search(device->agent_metadata, "//action"); device 786 daemons/fenced/fenced_commands.c stonith__set_device_flags(device->flags, device->id, device 789 daemons/fenced/fenced_commands.c stonith__set_device_flags(device->flags, device->id, device 792 daemons/fenced/fenced_commands.c stonith__set_device_flags(device->flags, device->id, device 802 daemons/fenced/fenced_commands.c device->automatic_unfencing = TRUE; device 807 daemons/fenced/fenced_commands.c device->on_target_actions = add_action(device->on_target_actions, action); device 886 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 889 daemons/fenced/fenced_commands.c CRM_CHECK(agent != NULL, return device); device 891 daemons/fenced/fenced_commands.c device = calloc(1, sizeof(stonith_device_t)); device 893 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, {free(agent); return device;}); device 895 daemons/fenced/fenced_commands.c device->id = crm_element_value_copy(dev, XML_ATTR_ID); device 896 daemons/fenced/fenced_commands.c device->agent = agent; device 897 daemons/fenced/fenced_commands.c device->namespace = crm_element_value_copy(dev, "namespace"); device 898 daemons/fenced/fenced_commands.c device->params = xml2device_params(device->id, dev); device 900 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, STONITH_ATTR_HOSTLIST); device 902 daemons/fenced/fenced_commands.c device->targets = stonith__parse_targets(value); device 905 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, STONITH_ATTR_HOSTMAP); device 906 daemons/fenced/fenced_commands.c device->aliases = build_port_aliases(value, &(device->targets)); device 908 daemons/fenced/fenced_commands.c device->agent_metadata = get_agent_metadata(device->agent); device 909 daemons/fenced/fenced_commands.c if (device->agent_metadata) { device 910 daemons/fenced/fenced_commands.c read_action_metadata(device); device 911 daemons/fenced/fenced_commands.c stonith__device_parameter_flags(&(device->flags), device->id, device 912 daemons/fenced/fenced_commands.c device->agent_metadata); device 915 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, "nodeid"); device 917 daemons/fenced/fenced_commands.c device->include_nodeid = is_nodeid_required(device->agent_metadata); device 922 daemons/fenced/fenced_commands.c device->automatic_unfencing = TRUE; device 925 daemons/fenced/fenced_commands.c if (is_action_required("on", device)) { device 926 daemons/fenced/fenced_commands.c crm_info("The fencing device '%s' requires unfencing", device->id); device 929 daemons/fenced/fenced_commands.c if (device->on_target_actions) { device 931 daemons/fenced/fenced_commands.c device->id, device->on_target_actions); device 934 daemons/fenced/fenced_commands.c device->work = mainloop_add_trigger(G_PRIORITY_HIGH, stonith_device_dispatch, device); device 937 daemons/fenced/fenced_commands.c return device; device 967 daemons/fenced/fenced_commands.c stonith_device_t * device, device 984 daemons/fenced/fenced_commands.c cmd->device = strdup(device->id); device 992 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 1018 daemons/fenced/fenced_commands.c stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; device 1049 daemons/fenced/fenced_commands.c stonith_device_t *dev = cmd->device ? g_hash_table_lookup(device_list, cmd->device) : NULL; device 1129 daemons/fenced/fenced_commands.c device_has_duplicate(stonith_device_t * device) device 1131 daemons/fenced/fenced_commands.c stonith_device_t *dup = g_hash_table_lookup(device_list, device->id); device 1134 daemons/fenced/fenced_commands.c crm_trace("No match for %s", device->id); device 1137 daemons/fenced/fenced_commands.c } else if (!pcmk__str_eq(dup->agent, device->agent, pcmk__str_casei)) { device 1138 daemons/fenced/fenced_commands.c crm_trace("Different agent: %s != %s", dup->agent, device->agent); device 1143 daemons/fenced/fenced_commands.c if (device_params_diff(device->params, dup->params) || device 1144 daemons/fenced/fenced_commands.c device_params_diff(dup->params, device->params)) { device 1156 daemons/fenced/fenced_commands.c stonith_device_t *device = build_device_from_xml(msg); device 1158 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return -ENOMEM); device 1160 daemons/fenced/fenced_commands.c dup = device_has_duplicate(device); device 1162 daemons/fenced/fenced_commands.c crm_debug("Device '%s' already existed in device list (%d active devices)", device->id, device 1164 daemons/fenced/fenced_commands.c free_device(device); device 1165 daemons/fenced/fenced_commands.c device = dup; device 1168 daemons/fenced/fenced_commands.c stonith_device_t *old = g_hash_table_lookup(device_list, device->id); device 1175 daemons/fenced/fenced_commands.c crm_info("Overwriting an existing entry for %s from the cib", device->id); device 1176 daemons/fenced/fenced_commands.c device->pending_ops = old->pending_ops; device 1177 daemons/fenced/fenced_commands.c device->api_registered = TRUE; device 1179 daemons/fenced/fenced_commands.c if (device->pending_ops) { device 1180 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 1183 daemons/fenced/fenced_commands.c g_hash_table_replace(device_list, device->id, device); device 1185 daemons/fenced/fenced_commands.c crm_notice("Added '%s' to the device list (%d active devices)", device->id, device 1189 daemons/fenced/fenced_commands.c *desc = device->id; device 1193 daemons/fenced/fenced_commands.c device->cib_registered = TRUE; device 1195 daemons/fenced/fenced_commands.c device->api_registered = TRUE; device 1204 daemons/fenced/fenced_commands.c stonith_device_t *device = g_hash_table_lookup(device_list, id); device 1206 daemons/fenced/fenced_commands.c if (!device) { device 1212 daemons/fenced/fenced_commands.c device->cib_registered = FALSE; device 1214 daemons/fenced/fenced_commands.c device->verified = FALSE; device 1215 daemons/fenced/fenced_commands.c device->api_registered = FALSE; device 1218 daemons/fenced/fenced_commands.c if (!device->cib_registered && !device->api_registered) { device 1225 daemons/fenced/fenced_commands.c device->cib_registered?"cib":"", device->api_registered?"api":""); device 1444 daemons/fenced/fenced_commands.c const char *device = dIter->value; device 1446 daemons/fenced/fenced_commands.c crm_trace("Adding device '%s' for %s[%d]", device, tp->target, id); device 1447 daemons/fenced/fenced_commands.c tp->levels[id] = g_list_append(tp->levels[id], strdup(device)); device 1525 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 1534 daemons/fenced/fenced_commands.c device = g_hash_table_lookup(device_list, id); device 1535 daemons/fenced/fenced_commands.c if ((device == NULL) device 1536 daemons/fenced/fenced_commands.c || (!device->api_registered && !strcmp(action, "monitor"))) { device 1549 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 1554 daemons/fenced/fenced_commands.c search_devices_record_result(struct device_search_s *search, const char *device, gboolean can_fence) device 1558 daemons/fenced/fenced_commands.c if (can_fence && device) { device 1559 daemons/fenced/fenced_commands.c search->capable = g_list_append(search->capable, strdup(device)); device 1588 daemons/fenced/fenced_commands.c localhost_is_eligible(const stonith_device_t *device, const char *action, device 1594 daemons/fenced/fenced_commands.c if (device && action && device->on_target_actions device 1595 daemons/fenced/fenced_commands.c && strstr(device->on_target_actions, action)) { device 1598 daemons/fenced/fenced_commands.c action, device->id, target); device 1730 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 1744 daemons/fenced/fenced_commands.c while (g_hash_table_iter_next(&gIter, (void **)&key, (void **)&device)) { device 1745 daemons/fenced/fenced_commands.c check_type = target_list_type(device); device 1806 daemons/fenced/fenced_commands.c stonith_device_t *device) device 1812 daemons/fenced/fenced_commands.c CRM_CHECK(xml && action && device, return); device 1814 daemons/fenced/fenced_commands.c if (is_action_required(action, device)) { device 1815 daemons/fenced/fenced_commands.c crm_trace("Action '%s' is required on %s", action, device->id); device 1819 daemons/fenced/fenced_commands.c action_specific_timeout = get_action_timeout(device, action, 0); device 1822 daemons/fenced/fenced_commands.c action, action_specific_timeout, device->id); device 1826 daemons/fenced/fenced_commands.c delay_max = get_action_delay_max(device, action); device 1829 daemons/fenced/fenced_commands.c action, delay_max, device->id); device 1833 daemons/fenced/fenced_commands.c delay_base = get_action_delay_base(device, action); device 1840 daemons/fenced/fenced_commands.c action, delay_max, device->id); device 1843 daemons/fenced/fenced_commands.c action, delay_base, device->id); device 1847 daemons/fenced/fenced_commands.c action, delay_base, delay_max, device->id); device 1862 daemons/fenced/fenced_commands.c add_disallowed(xmlNode *xml, const char *action, stonith_device_t *device, device 1865 daemons/fenced/fenced_commands.c if (!localhost_is_eligible(device, action, target, allow_suicide)) { device 1867 daemons/fenced/fenced_commands.c action, device->id); device 1883 daemons/fenced/fenced_commands.c add_action_reply(xmlNode *xml, const char *action, stonith_device_t *device, device 1889 daemons/fenced/fenced_commands.c add_action_specific_attributes(child, action, device); device 1890 daemons/fenced/fenced_commands.c add_disallowed(child, action, device, target, allow_suicide); device 1906 daemons/fenced/fenced_commands.c stonith_device_t *device = g_hash_table_lookup(device_list, lpc->data); device 1909 daemons/fenced/fenced_commands.c if (!device) { device 1918 daemons/fenced/fenced_commands.c crm_xml_add(dev, XML_ATTR_ID, device->id); device 1919 daemons/fenced/fenced_commands.c crm_xml_add(dev, "namespace", device->namespace); device 1920 daemons/fenced/fenced_commands.c crm_xml_add(dev, "agent", device->agent); device 1921 daemons/fenced/fenced_commands.c crm_xml_add_int(dev, F_STONITH_DEVICE_VERIFIED, device->verified); device 1926 daemons/fenced/fenced_commands.c if (!pcmk_is_set(device->flags, st_device_supports_reboot) device 1929 daemons/fenced/fenced_commands.c device->id); device 1934 daemons/fenced/fenced_commands.c add_action_specific_attributes(dev, action, device); device 1947 daemons/fenced/fenced_commands.c add_disallowed(dev, action, device, query->target, device 1949 daemons/fenced/fenced_commands.c add_action_reply(dev, "off", device, query->target, device 1951 daemons/fenced/fenced_commands.c add_action_reply(dev, "on", device, query->target, FALSE); device 1958 daemons/fenced/fenced_commands.c g_hash_table_foreach(device->params, hash2field, attrs); device 1996 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); device 2000 daemons/fenced/fenced_commands.c if (device && pcmk__str_eq(device, "manual_ack", pcmk__str_casei)) { device 2033 daemons/fenced/fenced_commands.c cmd->device, (op_merged? " (merged)" : ""), device 2039 daemons/fenced/fenced_commands.c cmd->action, pid, cmd->device, device 2047 daemons/fenced/fenced_commands.c char *prefix = crm_strdup_printf("%s:%d", cmd->device, pid); device 2064 daemons/fenced/fenced_commands.c crm_trace("Metadata query for %s", cmd->device); device 2105 daemons/fenced/fenced_commands.c crm_xml_add(notify_data, F_STONITH_DEVICE, cmd->device); device 2119 daemons/fenced/fenced_commands.c stonith_device_t *device; device 2123 daemons/fenced/fenced_commands.c if (!cmd->device) { device 2127 daemons/fenced/fenced_commands.c device = g_hash_table_lookup(device_list, cmd->device); device 2129 daemons/fenced/fenced_commands.c if (device) { device 2130 daemons/fenced/fenced_commands.c crm_trace("Cancel scheduled '%s' action on %s", cmd->action, device->id); device 2131 daemons/fenced/fenced_commands.c device->pending_ops = g_list_remove(device->pending_ops, cmd); device 2138 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 2150 daemons/fenced/fenced_commands.c device = g_hash_table_lookup(device_list, cmd->device); device 2151 daemons/fenced/fenced_commands.c if (device) { device 2152 daemons/fenced/fenced_commands.c if (!device->verified && (rc == pcmk_ok) && device 2155 daemons/fenced/fenced_commands.c device->verified = TRUE; device 2158 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 2162 daemons/fenced/fenced_commands.c cmd->action, cmd->device, rc, g_list_length(cmd->device_next)); device 2177 daemons/fenced/fenced_commands.c } else if (rc != 0 && cmd->device_next && (is_action_required(cmd->action, device) == FALSE)) { device 2222 daemons/fenced/fenced_commands.c !pcmk__str_eq(cmd->device, cmd_other->device, pcmk__str_casei)) { device 2270 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 2277 daemons/fenced/fenced_commands.c device = g_hash_table_lookup(device_list, devices->data); device 2279 daemons/fenced/fenced_commands.c if (device) { device 2287 daemons/fenced/fenced_commands.c if (device) { device 2288 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 2304 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 2314 daemons/fenced/fenced_commands.c device = g_hash_table_lookup(device_list, device_id); device 2315 daemons/fenced/fenced_commands.c if (device == NULL) { device 2319 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 2402 daemons/fenced/fenced_commands.c crm_xml_add(reply, F_STONITH_DEVICE, cmd->device); device 2656 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); device 2662 daemons/fenced/fenced_commands.c client->name, client->id, action, target, device ? device : "(any)"); device 2673 daemons/fenced/fenced_commands.c remote_peer, action, target, device ? device : "(any)"); device 179 daemons/fenced/fenced_remote.c const char *device) device 181 daemons/fenced/fenced_remote.c device_properties_t *props = g_hash_table_lookup(peer->devices, device); device 200 daemons/fenced/fenced_remote.c const char *device, gboolean verified_devices_only) device 202 daemons/fenced/fenced_remote.c device_properties_t *props = find_peer_device(op, peer, device); device 209 daemons/fenced/fenced_remote.c device, peer->host, count_peer_devices(op, peer, FALSE)); device 687 daemons/fenced/fenced_remote.c add_required_device(remote_fencing_op_t *op, const char *device) device 689 daemons/fenced/fenced_remote.c GListPtr match = g_list_find_custom(op->automatic_list, device, device 693 daemons/fenced/fenced_remote.c op->automatic_list = g_list_prepend(op->automatic_list, strdup(device)); device 705 daemons/fenced/fenced_remote.c remove_required_device(remote_fencing_op_t *op, const char *device) device 707 daemons/fenced/fenced_remote.c GListPtr match = g_list_find_custom(op->automatic_list, device, device 1183 daemons/fenced/fenced_remote.c find_best_peer(const char *device, remote_fencing_op_t * op, enum find_best_peer_options options) device 1188 daemons/fenced/fenced_remote.c if (!device && pcmk_is_set(op->call_options, st_opt_topology)) { device 1206 daemons/fenced/fenced_remote.c if (grab_peer_device(op, peer, device, verified_devices_only)) { device 1225 daemons/fenced/fenced_remote.c const char *device = NULL; device 1231 daemons/fenced/fenced_remote.c device = op->devices->data; device 1233 daemons/fenced/fenced_remote.c op->action, op->target, device); device 1240 daemons/fenced/fenced_remote.c peer = find_best_peer(device, op, FIND_PEER_SKIP_TARGET|FIND_PEER_VERIFIED_ONLY); device 1242 daemons/fenced/fenced_remote.c crm_trace("Found verified peer %s for %s", peer->host, device?device:"<any>"); device 1252 daemons/fenced/fenced_remote.c peer = find_best_peer(device, op, FIND_PEER_SKIP_TARGET); device 1262 daemons/fenced/fenced_remote.c peer = find_best_peer(device, op, FIND_PEER_TARGET_ONLY); device 1277 daemons/fenced/fenced_remote.c op->action, op->target, (device? device : "any device")); device 1283 daemons/fenced/fenced_remote.c const char *device) device 1287 daemons/fenced/fenced_remote.c if (!peer || !device) { device 1291 daemons/fenced/fenced_remote.c props = g_hash_table_lookup(peer->devices, device); device 1450 daemons/fenced/fenced_remote.c advance_topology_device_in_level(remote_fencing_op_t *op, const char *device, device 1461 daemons/fenced/fenced_remote.c remove_required_device(op, device); device 1502 daemons/fenced/fenced_remote.c const char *device = NULL; device 1527 daemons/fenced/fenced_remote.c device = op->devices->data; device 1528 daemons/fenced/fenced_remote.c timeout = get_device_timeout(op, peer, device); device 1545 daemons/fenced/fenced_remote.c if (device) { device 1547 daemons/fenced/fenced_remote.c get_device_timeout(op, peer, device); device 1550 daemons/fenced/fenced_remote.c peer->host, op->action, op->target, device, device 1552 daemons/fenced/fenced_remote.c crm_xml_add(remote_op, F_STONITH_DEVICE, device); device 1569 daemons/fenced/fenced_remote.c if(stonith_watchdog_timeout_ms > 0 && device && pcmk__str_eq(device, "watchdog", pcmk__str_casei)) { device 1599 daemons/fenced/fenced_remote.c "after successful 'off'", device, op->target); device 1600 daemons/fenced/fenced_remote.c advance_topology_device_in_level(op, device, NULL, pcmk_ok); device 1622 daemons/fenced/fenced_remote.c if(stonith_watchdog_timeout_ms && pcmk__str_eq(device, "watchdog", pcmk__str_null_matches | pcmk__str_casei)) { device 1655 daemons/fenced/fenced_remote.c op->action, op->target, (device? " with " : ""), device 1656 daemons/fenced/fenced_remote.c (device? device : ""), op->client_name, op->id); device 1687 daemons/fenced/fenced_remote.c GListPtr device = NULL; device 1705 daemons/fenced/fenced_remote.c for (device = tp->levels[i]; device; device = device->next) { device 1713 daemons/fenced/fenced_remote.c match = find_peer_device(op, peer, device->data); device 1736 daemons/fenced/fenced_remote.c parse_action_specific(xmlNode *xml, const char *peer, const char *device, device 1745 daemons/fenced/fenced_remote.c peer, device, action, props->custom_action_timeout[phase]); device 1752 daemons/fenced/fenced_remote.c peer, device, props->delay_max[phase], action); device 1759 daemons/fenced/fenced_remote.c peer, device, props->delay_base[phase], action); device 1769 daemons/fenced/fenced_remote.c peer, device, action); device 1770 daemons/fenced/fenced_remote.c add_required_device(op, device); device 1780 daemons/fenced/fenced_remote.c peer, action, device); device 1795 daemons/fenced/fenced_remote.c st_query_result_t *result, const char *device) device 1803 daemons/fenced/fenced_remote.c g_hash_table_insert(result->devices, strdup(device), props); device 1809 daemons/fenced/fenced_remote.c result->host, device); device 1814 daemons/fenced/fenced_remote.c parse_action_specific(xml, result->host, device, op_requested_action(op), device 1823 daemons/fenced/fenced_remote.c parse_action_specific(child, result->host, device, "off", device 1826 daemons/fenced/fenced_remote.c parse_action_specific(child, result->host, device, "on", device 1858 daemons/fenced/fenced_remote.c const char *device = ID(child); device 1860 daemons/fenced/fenced_remote.c if (device) { device 1861 daemons/fenced/fenced_remote.c add_device_properties(child, op, result, device); device 1992 daemons/fenced/fenced_remote.c const char *device = NULL; device 2006 daemons/fenced/fenced_remote.c device = crm_element_value(dev, F_STONITH_DEVICE); device 2026 daemons/fenced/fenced_remote.c if (op->devices && device && !pcmk__str_eq(op->devices->data, device, pcmk__str_casei)) { device 2029 daemons/fenced/fenced_remote.c device, (const char *) op->devices->data, op->action, op->target); device 2049 daemons/fenced/fenced_remote.c stonith_our_uname, device, op->target); device 2054 daemons/fenced/fenced_remote.c const char *device = crm_element_value(msg, F_STONITH_DEVICE); device 2058 daemons/fenced/fenced_remote.c op->action, op->target, device, op->client_name, device 2073 daemons/fenced/fenced_remote.c "after successful 'off'", device, rc, op->target); device 2080 daemons/fenced/fenced_remote.c advance_topology_device_in_level(op, device, msg, rc); device 124 include/crm/stonith-ng.h char *device; device 212 include/crm/stonith-ng.h const char *device, const char *provider, char **output, int timeout); device 1760 lib/fencing/st_client.c event->device = crm_element_value_copy(data, F_STONITH_DEVICE); device 1783 lib/fencing/st_client.c free(event->device); device 363 lib/fencing/st_output.c const char *device = va_arg(args, const char *); device 368 lib/fencing/st_output.c if (device) { device 369 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s on %s %s", agent, device, device 388 lib/fencing/st_output.c const char *device = va_arg(args, const char *); device 393 lib/fencing/st_output.c if (device) { device 394 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s on %s %s\n", agent, device, device 418 lib/fencing/st_output.c const char *device = va_arg(args, const char *); device 424 lib/fencing/st_output.c if (device != NULL) { device 425 lib/fencing/st_output.c xmlSetProp(node, (pcmkXmlStr) "device", (pcmkXmlStr) device); device 341 tools/stonith_admin.c const char *device = NULL; device 406 tools/stonith_admin.c device = options.register_dev; device 411 tools/stonith_admin.c device = options.query; device 416 tools/stonith_admin.c device = options.unregister_dev; device 421 tools/stonith_admin.c device = options.targets; device 533 tools/stonith_admin.c rc = st->cmds->monitor(st, st_opts, device, options.timeout); device 535 tools/stonith_admin.c rc = st->cmds->list(st, st_opts, device, NULL, options.timeout); device 541 tools/stonith_admin.c rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000); device 549 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, device 555 tools/stonith_admin.c rc = st->cmds->remove_device(st, st_opts, device); device 605 tools/stonith_admin.c device = options.devices ? options.devices->key : NULL; device 606 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params,