device 74 daemons/fenced/fenced_commands.c static void search_devices_record_result(struct device_search_s *search, const char *device, device 78 daemons/fenced/fenced_commands.c static void read_action_metadata(stonith_device_t *device); device 102 daemons/fenced/fenced_commands.c char *device; device 124 daemons/fenced/fenced_commands.c is_action_required(const char *action, const stonith_device_t *device) device 126 daemons/fenced/fenced_commands.c return (device != NULL) && device->automatic_unfencing device 131 daemons/fenced/fenced_commands.c get_action_delay_max(const stonith_device_t *device, const char *action) device 140 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, PCMK_STONITH_DELAY_MAX); device 149 daemons/fenced/fenced_commands.c get_action_delay_base(const stonith_device_t *device, const char *action, device 159 daemons/fenced/fenced_commands.c hash_value = g_hash_table_lookup(device->params, PCMK_STONITH_DELAY_BASE); device 216 daemons/fenced/fenced_commands.c get_action_timeout(const stonith_device_t *device, const char *action, device 219 daemons/fenced/fenced_commands.c if (action && device && device->params) { device 227 daemons/fenced/fenced_commands.c && !pcmk_is_set(device->flags, st_device_supports_reboot)) { device 229 daemons/fenced/fenced_commands.c device->id); device 235 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, buffer); device 254 daemons/fenced/fenced_commands.c if ((cmd == NULL) || (cmd->device == NULL) || (device_list == NULL)) { device 257 daemons/fenced/fenced_commands.c return g_hash_table_lookup(device_list, cmd->device); device 274 daemons/fenced/fenced_commands.c stonith_device_t *device = g_hash_table_lookup(device_list, device_id); device 276 daemons/fenced/fenced_commands.c if ((device != NULL) && (device->params != NULL)) { device 277 daemons/fenced/fenced_commands.c action = g_hash_table_lookup(device->params, "pcmk_reboot_action"); device 295 daemons/fenced/fenced_commands.c stonith_device_t *device = g_hash_table_lookup(device_list, device_id); device 297 daemons/fenced/fenced_commands.c if (device != NULL) { device 298 daemons/fenced/fenced_commands.c return pcmk_is_set(device->flags, st_device_supports_on); device 318 daemons/fenced/fenced_commands.c free(cmd->device); device 377 daemons/fenced/fenced_commands.c cmd->device = crm_element_value_copy(op, F_STONITH_DEVICE); device 388 daemons/fenced/fenced_commands.c get_action_limit(stonith_device_t * device) device 393 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, PCMK_STONITH_ACTION_LIMIT); device 403 daemons/fenced/fenced_commands.c get_active_cmds(stonith_device_t * device) device 409 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return 0); device 416 daemons/fenced/fenced_commands.c if (cmd->active_on == device) { device 428 daemons/fenced/fenced_commands.c stonith_device_t * device = device 434 daemons/fenced/fenced_commands.c CRM_ASSERT(device); device 438 daemons/fenced/fenced_commands.c pcmk__s(cmd->target, ""), device->id, cmd->timeout); device 439 daemons/fenced/fenced_commands.c cmd->active_on = device; device 445 daemons/fenced/fenced_commands.c stonith_device_t *device = data; device 448 daemons/fenced/fenced_commands.c switch (get_agent_metadata(device->agent, &device->agent_metadata)) { device 450 daemons/fenced/fenced_commands.c if (device->agent_metadata) { device 451 daemons/fenced/fenced_commands.c read_action_metadata(device); device 452 daemons/fenced/fenced_commands.c stonith__device_parameter_flags(&(device->flags), device->id, device 453 daemons/fenced/fenced_commands.c device->agent_metadata); device 458 daemons/fenced/fenced_commands.c period_ms = pcmk__mainloop_timer_get_period(device->timer); device 460 daemons/fenced/fenced_commands.c mainloop_timer_set_period(device->timer, 2 * period_ms); device 490 daemons/fenced/fenced_commands.c stonith_device_execute(stonith_device_t * device) device 502 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return FALSE); device 504 daemons/fenced/fenced_commands.c active_cmds = get_active_cmds(device); device 505 daemons/fenced/fenced_commands.c action_limit = get_action_limit(device); device 508 daemons/fenced/fenced_commands.c device->id, action_limit, active_cmds, device 513 daemons/fenced/fenced_commands.c for (gIter = device->pending_ops; gIter != NULL; gIter = gIterNext) { device 524 daemons/fenced/fenced_commands.c device->id, pending_op->start_delay); device 528 daemons/fenced/fenced_commands.c device->pending_ops = g_list_remove_link(device->pending_ops, gIter); device 536 daemons/fenced/fenced_commands.c crm_trace("No actions using %s are needed", device->id); device 540 daemons/fenced/fenced_commands.c if (pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT, device 555 daemons/fenced/fenced_commands.c exec_rc = pcmk__substitute_secrets(device->id, device->params); device 560 daemons/fenced/fenced_commands.c device->id, pcmk_rc_str(exec_rc)); device 564 daemons/fenced/fenced_commands.c device->id, pcmk_rc_str(exec_rc)); device 574 daemons/fenced/fenced_commands.c && !pcmk_is_set(device->flags, st_device_supports_reboot)) { device 579 daemons/fenced/fenced_commands.c pcmk__s(cmd->target, ""), device->id, device->agent); device 583 daemons/fenced/fenced_commands.c if (pcmk_is_set(device->flags, st_device_supports_parameter_port)) { device 586 daemons/fenced/fenced_commands.c } else if (pcmk_is_set(device->flags, st_device_supports_parameter_plug)) { device 590 daemons/fenced/fenced_commands.c action = stonith__action_create(device->agent, action_str, cmd->target, device 592 daemons/fenced/fenced_commands.c device->params, device->aliases, host_arg); device 596 daemons/fenced/fenced_commands.c cmd->activating_on = device; device 609 daemons/fenced/fenced_commands.c if (device->pending_ops) { device 610 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 625 daemons/fenced/fenced_commands.c stonith_device_t *device = cmd_device(cmd); device 628 daemons/fenced/fenced_commands.c if (device) { device 629 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 636 daemons/fenced/fenced_commands.c schedule_stonith_command(async_command_t * cmd, stonith_device_t * device) device 643 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return); device 645 daemons/fenced/fenced_commands.c if (cmd->device) { device 646 daemons/fenced/fenced_commands.c free(cmd->device); device 649 daemons/fenced/fenced_commands.c if (device->include_nodeid && (cmd->target != NULL)) { device 655 daemons/fenced/fenced_commands.c cmd->device = strdup(device->id); device 656 daemons/fenced/fenced_commands.c cmd->timeout = get_action_timeout(device, cmd->action, cmd->default_timeout); device 664 daemons/fenced/fenced_commands.c device->id, cmd->origin, cmd->remote_op_id, cmd->timeout); device 670 daemons/fenced/fenced_commands.c device->id, cmd->client, cmd->timeout); device 673 daemons/fenced/fenced_commands.c device->pending_ops = g_list_append(device->pending_ops, cmd); device 674 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 681 daemons/fenced/fenced_commands.c delay_max = get_action_delay_max(device, cmd->action); device 682 daemons/fenced/fenced_commands.c delay_base = get_action_delay_base(device, cmd->action, cmd->target); device 690 daemons/fenced/fenced_commands.c delay_base, delay_max, cmd->action, device->id); device 706 daemons/fenced/fenced_commands.c device->id, cmd->start_delay, cmd->timeout, device 717 daemons/fenced/fenced_commands.c stonith_device_t *device = data; device 719 daemons/fenced/fenced_commands.c g_hash_table_destroy(device->params); device 720 daemons/fenced/fenced_commands.c g_hash_table_destroy(device->aliases); device 722 daemons/fenced/fenced_commands.c for (gIter = device->pending_ops; gIter != NULL; gIter = gIter->next) { device 725 daemons/fenced/fenced_commands.c crm_warn("Removal of device '%s' purged operation '%s'", device->id, cmd->action); device 729 daemons/fenced/fenced_commands.c g_list_free(device->pending_ops); device 731 daemons/fenced/fenced_commands.c g_list_free_full(device->targets, free); device 733 daemons/fenced/fenced_commands.c if (device->timer) { device 734 daemons/fenced/fenced_commands.c mainloop_timer_stop(device->timer); device 735 daemons/fenced/fenced_commands.c mainloop_timer_del(device->timer); device 738 daemons/fenced/fenced_commands.c mainloop_destroy_trigger(device->work); device 740 daemons/fenced/fenced_commands.c free_xml(device->agent_metadata); device 741 daemons/fenced/fenced_commands.c free(device->namespace); device 742 daemons/fenced/fenced_commands.c if (device->on_target_actions != NULL) { device 743 daemons/fenced/fenced_commands.c g_string_free(device->on_target_actions, TRUE); device 745 daemons/fenced/fenced_commands.c free(device->agent); device 746 daemons/fenced/fenced_commands.c free(device->id); device 747 daemons/fenced/fenced_commands.c free(device); device 924 daemons/fenced/fenced_commands.c read_action_metadata(stonith_device_t *device) device 930 daemons/fenced/fenced_commands.c if (device->agent_metadata == NULL) { device 934 daemons/fenced/fenced_commands.c xpath = xpath_search(device->agent_metadata, "//action"); device 952 daemons/fenced/fenced_commands.c stonith__set_device_flags(device->flags, device->id, device 955 daemons/fenced/fenced_commands.c stonith__set_device_flags(device->flags, device->id, device 958 daemons/fenced/fenced_commands.c stonith__set_device_flags(device->flags, device->id, device 964 daemons/fenced/fenced_commands.c device->automatic_unfencing = TRUE; device 966 daemons/fenced/fenced_commands.c stonith__set_device_flags(device->flags, device->id, device 971 daemons/fenced/fenced_commands.c pcmk__add_word(&(device->on_target_actions), 64, action); device 1074 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 1077 daemons/fenced/fenced_commands.c CRM_CHECK(agent != NULL, return device); device 1079 daemons/fenced/fenced_commands.c device = calloc(1, sizeof(stonith_device_t)); device 1081 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, {free(agent); return device;}); device 1083 daemons/fenced/fenced_commands.c device->id = crm_element_value_copy(dev, XML_ATTR_ID); device 1084 daemons/fenced/fenced_commands.c device->agent = agent; device 1085 daemons/fenced/fenced_commands.c device->namespace = crm_element_value_copy(dev, "namespace"); device 1086 daemons/fenced/fenced_commands.c device->params = xml2device_params(device->id, dev); device 1088 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, PCMK_STONITH_HOST_LIST); device 1090 daemons/fenced/fenced_commands.c device->targets = stonith__parse_targets(value); device 1093 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, PCMK_STONITH_HOST_MAP); device 1094 daemons/fenced/fenced_commands.c device->aliases = build_port_aliases(value, &(device->targets)); device 1096 daemons/fenced/fenced_commands.c value = target_list_type(device); device 1097 daemons/fenced/fenced_commands.c if (!pcmk__str_eq(value, "static-list", pcmk__str_casei) && device->targets) { device 1099 daemons/fenced/fenced_commands.c g_list_free_full(device->targets, free); device 1100 daemons/fenced/fenced_commands.c device->targets = NULL; device 1102 daemons/fenced/fenced_commands.c switch (get_agent_metadata(device->agent, &device->agent_metadata)) { device 1104 daemons/fenced/fenced_commands.c if (device->agent_metadata) { device 1105 daemons/fenced/fenced_commands.c read_action_metadata(device); device 1106 daemons/fenced/fenced_commands.c stonith__device_parameter_flags(&(device->flags), device->id, device 1107 daemons/fenced/fenced_commands.c device->agent_metadata); device 1112 daemons/fenced/fenced_commands.c if (device->timer == NULL) { device 1113 daemons/fenced/fenced_commands.c device->timer = mainloop_timer_add("get_agent_metadata", 10 * 1000, device 1114 daemons/fenced/fenced_commands.c TRUE, get_agent_metadata_cb, device); device 1116 daemons/fenced/fenced_commands.c if (!mainloop_timer_running(device->timer)) { device 1117 daemons/fenced/fenced_commands.c mainloop_timer_start(device->timer); device 1125 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, "nodeid"); device 1127 daemons/fenced/fenced_commands.c device->include_nodeid = is_nodeid_required(device->agent_metadata); device 1132 daemons/fenced/fenced_commands.c device->automatic_unfencing = TRUE; device 1135 daemons/fenced/fenced_commands.c if (is_action_required("on", device)) { device 1136 daemons/fenced/fenced_commands.c crm_info("Fencing device '%s' requires unfencing", device->id); device 1139 daemons/fenced/fenced_commands.c if (device->on_target_actions != NULL) { device 1141 daemons/fenced/fenced_commands.c "on target", device->id, device 1142 daemons/fenced/fenced_commands.c (const char *) device->on_target_actions->str); device 1145 daemons/fenced/fenced_commands.c device->work = mainloop_add_trigger(G_PRIORITY_HIGH, stonith_device_dispatch, device); device 1148 daemons/fenced/fenced_commands.c return device; device 1153 daemons/fenced/fenced_commands.c stonith_device_t * device, device 1171 daemons/fenced/fenced_commands.c cmd->device = strdup(device->id); device 1179 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 1355 daemons/fenced/fenced_commands.c device_has_duplicate(const stonith_device_t *device) device 1357 daemons/fenced/fenced_commands.c stonith_device_t *dup = g_hash_table_lookup(device_list, device->id); device 1360 daemons/fenced/fenced_commands.c crm_trace("No match for %s", device->id); device 1363 daemons/fenced/fenced_commands.c } else if (!pcmk__str_eq(dup->agent, device->agent, pcmk__str_casei)) { device 1364 daemons/fenced/fenced_commands.c crm_trace("Different agent: %s != %s", dup->agent, device->agent); device 1369 daemons/fenced/fenced_commands.c if (device_params_diff(device->params, dup->params) || device 1370 daemons/fenced/fenced_commands.c device_params_diff(dup->params, device->params)) { device 1382 daemons/fenced/fenced_commands.c stonith_device_t *device = build_device_from_xml(dev); device 1386 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return -ENOMEM); device 1389 daemons/fenced/fenced_commands.c if (pcmk__str_eq(device->id, STONITH_WATCHDOG_ID, pcmk__str_none) || device 1390 daemons/fenced/fenced_commands.c pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT, device 1397 daemons/fenced/fenced_commands.c } else if (!pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT, device 1401 daemons/fenced/fenced_commands.c device->agent?device->agent:""); device 1404 daemons/fenced/fenced_commands.c } else if (!pcmk__str_eq(device->id, STONITH_WATCHDOG_ID, device 1408 daemons/fenced/fenced_commands.c device->id?device->id:""); device 1412 daemons/fenced/fenced_commands.c if (pcmk__str_eq(device->agent, STONITH_WATCHDOG_AGENT, device 1418 daemons/fenced/fenced_commands.c stonith_watchdog_targets = device->targets; device 1419 daemons/fenced/fenced_commands.c device->targets = NULL; device 1422 daemons/fenced/fenced_commands.c g_list_free_full(device->targets, free); device 1423 daemons/fenced/fenced_commands.c device->targets = stonith__parse_targets(stonith_our_uname); device 1424 daemons/fenced/fenced_commands.c g_hash_table_replace(device->params, device 1433 daemons/fenced/fenced_commands.c device->targets = NULL; device 1434 daemons/fenced/fenced_commands.c stonith_device_remove(device->id, from_cib); device 1436 daemons/fenced/fenced_commands.c free_device(device); device 1440 daemons/fenced/fenced_commands.c dup = device_has_duplicate(device); device 1444 daemons/fenced/fenced_commands.c device->id, ndevices, pcmk__plural_s(ndevices)); device 1445 daemons/fenced/fenced_commands.c free_device(device); device 1446 daemons/fenced/fenced_commands.c device = dup; device 1447 daemons/fenced/fenced_commands.c dup = g_hash_table_lookup(device_list, device->id); device 1451 daemons/fenced/fenced_commands.c stonith_device_t *old = g_hash_table_lookup(device_list, device->id); device 1458 daemons/fenced/fenced_commands.c crm_info("Overwriting existing entry for %s from CIB", device->id); device 1459 daemons/fenced/fenced_commands.c device->pending_ops = old->pending_ops; device 1460 daemons/fenced/fenced_commands.c device->api_registered = TRUE; device 1462 daemons/fenced/fenced_commands.c if (device->pending_ops) { device 1463 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 1466 daemons/fenced/fenced_commands.c g_hash_table_replace(device_list, device->id, device); device 1470 daemons/fenced/fenced_commands.c device->id, ndevices, pcmk__plural_s(ndevices)); device 1474 daemons/fenced/fenced_commands.c device->cib_registered = TRUE; device 1476 daemons/fenced/fenced_commands.c device->api_registered = TRUE; device 1485 daemons/fenced/fenced_commands.c stonith_device_t *device = g_hash_table_lookup(device_list, id); device 1488 daemons/fenced/fenced_commands.c if (!device) { device 1496 daemons/fenced/fenced_commands.c device->cib_registered = FALSE; device 1498 daemons/fenced/fenced_commands.c device->verified = FALSE; device 1499 daemons/fenced/fenced_commands.c device->api_registered = FALSE; device 1502 daemons/fenced/fenced_commands.c if (!device->cib_registered && !device->api_registered) { device 1511 daemons/fenced/fenced_commands.c (device->cib_registered? " cib" : ""), device 1512 daemons/fenced/fenced_commands.c (device->api_registered? " api" : "")); device 1809 daemons/fenced/fenced_commands.c const char *device = dIter->value; device 1811 daemons/fenced/fenced_commands.c crm_trace("Adding device '%s' for %s[%d]", device, tp->target, id); device 1812 daemons/fenced/fenced_commands.c tp->levels[id] = g_list_append(tp->levels[id], strdup(device)); device 1958 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 1989 daemons/fenced/fenced_commands.c device = g_hash_table_lookup(device_list, id); device 1990 daemons/fenced/fenced_commands.c if (device == NULL) { device 1997 daemons/fenced/fenced_commands.c } else if (!device->api_registered && !strcmp(action, "monitor")) { device 2013 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 2018 daemons/fenced/fenced_commands.c search_devices_record_result(struct device_search_s *search, const char *device, gboolean can_fence) device 2021 daemons/fenced/fenced_commands.c if (can_fence && device) { device 2023 daemons/fenced/fenced_commands.c stonith_device_t *dev = g_hash_table_lookup(device_list, device); device 2028 daemons/fenced/fenced_commands.c search->capable = g_list_append(search->capable, strdup(device)); device 2059 daemons/fenced/fenced_commands.c localhost_is_eligible(const stonith_device_t *device, const char *action, device 2065 daemons/fenced/fenced_commands.c if ((device != NULL) && (action != NULL) device 2066 daemons/fenced/fenced_commands.c && (device->on_target_actions != NULL) device 2067 daemons/fenced/fenced_commands.c && (strstr((const char*) device->on_target_actions->str, device 2072 daemons/fenced/fenced_commands.c "host, not %s", action, device->id, target); device 2096 daemons/fenced/fenced_commands.c localhost_is_eligible_with_remap(const stonith_device_t *device, device 2101 daemons/fenced/fenced_commands.c if (localhost_is_eligible(device, action, target, allow_self)) { device 2113 daemons/fenced/fenced_commands.c if (localhost_is_eligible(device, "off", target, allow_self) device 2114 daemons/fenced/fenced_commands.c || localhost_is_eligible(device, "on", target, FALSE)) { device 2298 daemons/fenced/fenced_commands.c const stonith_device_t *device, device 2305 daemons/fenced/fenced_commands.c CRM_CHECK(xml && action && device, return); device 2307 daemons/fenced/fenced_commands.c if (is_action_required(action, device)) { device 2308 daemons/fenced/fenced_commands.c crm_trace("Action '%s' is required using %s", action, device->id); device 2312 daemons/fenced/fenced_commands.c action_specific_timeout = get_action_timeout(device, action, 0); device 2315 daemons/fenced/fenced_commands.c action, action_specific_timeout, device->id); device 2319 daemons/fenced/fenced_commands.c delay_max = get_action_delay_max(device, action); device 2322 daemons/fenced/fenced_commands.c action, delay_max, device->id); device 2326 daemons/fenced/fenced_commands.c delay_base = get_action_delay_base(device, action, target); device 2333 daemons/fenced/fenced_commands.c action, delay_max, device->id); device 2336 daemons/fenced/fenced_commands.c action, delay_base, device->id); device 2340 daemons/fenced/fenced_commands.c action, delay_base, delay_max, device->id); device 2355 daemons/fenced/fenced_commands.c add_disallowed(xmlNode *xml, const char *action, const stonith_device_t *device, device 2358 daemons/fenced/fenced_commands.c if (!localhost_is_eligible(device, action, target, allow_suicide)) { device 2360 daemons/fenced/fenced_commands.c action, device->id); device 2377 daemons/fenced/fenced_commands.c const stonith_device_t *device, const char *target, device 2383 daemons/fenced/fenced_commands.c add_action_specific_attributes(child, action, device, target); device 2384 daemons/fenced/fenced_commands.c add_disallowed(child, action, device, target, allow_suicide); device 2410 daemons/fenced/fenced_commands.c stonith_device_t *device = g_hash_table_lookup(device_list, lpc->data); device 2413 daemons/fenced/fenced_commands.c if (!device) { device 2422 daemons/fenced/fenced_commands.c crm_xml_add(dev, XML_ATTR_ID, device->id); device 2423 daemons/fenced/fenced_commands.c crm_xml_add(dev, "namespace", device->namespace); device 2424 daemons/fenced/fenced_commands.c crm_xml_add(dev, "agent", device->agent); device 2425 daemons/fenced/fenced_commands.c crm_xml_add_int(dev, F_STONITH_DEVICE_VERIFIED, device->verified); device 2426 daemons/fenced/fenced_commands.c crm_xml_add_int(dev, F_STONITH_DEVICE_SUPPORT_FLAGS, device->flags); device 2431 daemons/fenced/fenced_commands.c if (!pcmk_is_set(device->flags, st_device_supports_reboot) device 2434 daemons/fenced/fenced_commands.c device->id); device 2439 daemons/fenced/fenced_commands.c add_action_specific_attributes(dev, action, device, query->target); device 2452 daemons/fenced/fenced_commands.c add_disallowed(dev, action, device, query->target, device 2454 daemons/fenced/fenced_commands.c add_action_reply(dev, "off", device, query->target, device 2456 daemons/fenced/fenced_commands.c add_action_reply(dev, "on", device, query->target, FALSE); device 2463 daemons/fenced/fenced_commands.c g_hash_table_foreach(device->params, hash2field, attrs); device 2541 daemons/fenced/fenced_commands.c if (cmd->device != NULL) { device 2542 daemons/fenced/fenced_commands.c pcmk__g_strcat(msg, "using ", cmd->device, " ", NULL); device 2575 daemons/fenced/fenced_commands.c char *prefix = crm_strdup_printf("%s[%d]", cmd->device, pid); device 2641 daemons/fenced/fenced_commands.c crm_xml_add(notify_data, F_STONITH_DEVICE, cmd->device); device 2653 daemons/fenced/fenced_commands.c stonith_device_t *device = cmd_device(cmd); device 2655 daemons/fenced/fenced_commands.c if (device) { device 2657 daemons/fenced/fenced_commands.c cmd->action, device->id); device 2658 daemons/fenced/fenced_commands.c device->pending_ops = g_list_remove(device->pending_ops, cmd); device 2705 daemons/fenced/fenced_commands.c !pcmk__str_eq(cmd->device, cmd_other->device, pcmk__str_casei)) { device 2758 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 2763 daemons/fenced/fenced_commands.c device = cmd_device(cmd); device 2767 daemons/fenced/fenced_commands.c if (device) { device 2768 daemons/fenced/fenced_commands.c if (!device->verified && pcmk__result_ok(result) && device 2771 daemons/fenced/fenced_commands.c device->verified = TRUE; device 2774 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 2781 daemons/fenced/fenced_commands.c && !is_action_required(cmd->action, device)) { device 2820 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 2829 daemons/fenced/fenced_commands.c device = g_hash_table_lookup(device_list, devices->data); device 2832 daemons/fenced/fenced_commands.c if (device == NULL) { // No device found device 2846 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 2861 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 2878 daemons/fenced/fenced_commands.c device = g_hash_table_lookup(device_list, device_id); device 2879 daemons/fenced/fenced_commands.c if (device == NULL) { device 2885 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 2989 daemons/fenced/fenced_commands.c crm_xml_add(reply, F_STONITH_DEVICE, cmd->device); device 3221 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); device 3223 daemons/fenced/fenced_commands.c if (pcmk__str_eq(device, "manual_ack", pcmk__str_casei)) { device 3329 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); device 3336 daemons/fenced/fenced_commands.c target, (device? device : "any device")); device 3349 daemons/fenced/fenced_commands.c (device == NULL)? "(any)" : device); device 185 daemons/fenced/fenced_remote.c const char *device, uint32_t support_action_only) device 187 daemons/fenced/fenced_remote.c device_properties_t *props = g_hash_table_lookup(peer->devices, device); device 209 daemons/fenced/fenced_remote.c const char *device, gboolean verified_devices_only) device 211 daemons/fenced/fenced_remote.c device_properties_t *props = find_peer_device(op, peer, device, device 219 daemons/fenced/fenced_remote.c device, peer->host, count_peer_devices(op, peer, FALSE, st_device_supports_none)); device 797 daemons/fenced/fenced_remote.c add_required_device(remote_fencing_op_t *op, const char *device) device 799 daemons/fenced/fenced_remote.c GList *match = g_list_find_custom(op->automatic_list, device, device 803 daemons/fenced/fenced_remote.c op->automatic_list = g_list_prepend(op->automatic_list, strdup(device)); device 815 daemons/fenced/fenced_remote.c remove_required_device(remote_fencing_op_t *op, const char *device) device 817 daemons/fenced/fenced_remote.c GList *match = g_list_find_custom(op->automatic_list, device, device 1352 daemons/fenced/fenced_remote.c find_best_peer(const char *device, remote_fencing_op_t * op, enum find_best_peer_options options) device 1357 daemons/fenced/fenced_remote.c if (!device && pcmk_is_set(op->call_options, st_opt_topology)) { device 1376 daemons/fenced/fenced_remote.c if (grab_peer_device(op, peer, device, verified_devices_only)) { device 1395 daemons/fenced/fenced_remote.c const char *device = NULL; device 1401 daemons/fenced/fenced_remote.c device = op->devices->data; device 1403 daemons/fenced/fenced_remote.c op->action, op->target, device); device 1410 daemons/fenced/fenced_remote.c peer = find_best_peer(device, op, FIND_PEER_SKIP_TARGET|FIND_PEER_VERIFIED_ONLY); device 1412 daemons/fenced/fenced_remote.c crm_trace("Found verified peer %s for %s", peer->host, device?device:"<any>"); device 1422 daemons/fenced/fenced_remote.c peer = find_best_peer(device, op, FIND_PEER_SKIP_TARGET); device 1432 daemons/fenced/fenced_remote.c peer = find_best_peer(device, op, FIND_PEER_TARGET_ONLY); device 1448 daemons/fenced/fenced_remote.c && pcmk__str_eq(device, STONITH_WATCHDOG_ID, pcmk__str_none) device 1455 daemons/fenced/fenced_remote.c op->action, op->target, (device? device : "any device")); device 1462 daemons/fenced/fenced_remote.c const peer_device_info_t *peer, const char *device, device 1468 daemons/fenced/fenced_remote.c if (!peer || !device) { device 1472 daemons/fenced/fenced_remote.c props = g_hash_table_lookup(peer->devices, device); device 1688 daemons/fenced/fenced_remote.c advance_topology_device_in_level(remote_fencing_op_t *op, const char *device, device 1700 daemons/fenced/fenced_remote.c remove_required_device(op, device); device 1775 daemons/fenced/fenced_remote.c const char *device = NULL; device 1796 daemons/fenced/fenced_remote.c device = op->devices->data; device 1797 daemons/fenced/fenced_remote.c if (pcmk__str_eq(fenced_device_reboot_action(device), "off", device 1801 daemons/fenced/fenced_remote.c op->target, device); device 1802 daemons/fenced/fenced_remote.c advance_topology_device_in_level(op, device, NULL); device 1805 daemons/fenced/fenced_remote.c if (!fenced_device_supports_on(device)) { device 1807 daemons/fenced/fenced_remote.c "doesn't support 'on'", op->target, device); device 1808 daemons/fenced/fenced_remote.c advance_topology_device_in_level(op, device, NULL); device 1838 daemons/fenced/fenced_remote.c device = op->devices->data; device 1843 daemons/fenced/fenced_remote.c timeout = get_device_timeout(op, peer, device, false); device 1864 daemons/fenced/fenced_remote.c if (device) { device 1866 daemons/fenced/fenced_remote.c get_device_timeout(op, peer, device, true); device 1869 daemons/fenced/fenced_remote.c peer->host, op->action, op->target, device, device 1871 daemons/fenced/fenced_remote.c crm_xml_add(remote_op, F_STONITH_DEVICE, device); device 1888 daemons/fenced/fenced_remote.c && (pcmk__str_eq(device, STONITH_WATCHDOG_ID, pcmk__str_none) device 1926 daemons/fenced/fenced_remote.c "after successful 'off'", device, op->target); device 1927 daemons/fenced/fenced_remote.c advance_topology_device_in_level(op, device, NULL); device 1948 daemons/fenced/fenced_remote.c if(stonith_watchdog_timeout_ms > 0 && pcmk__str_eq(device, device 1989 daemons/fenced/fenced_remote.c op->action, op->target, (device? " using " : ""), device 1990 daemons/fenced/fenced_remote.c (device? device : ""), op->client_name, op->id); device 2023 daemons/fenced/fenced_remote.c GList *device = NULL; device 2041 daemons/fenced/fenced_remote.c for (device = tp->levels[i]; device; device = device->next) { device 2049 daemons/fenced/fenced_remote.c match = find_peer_device(op, peer, device->data, st_device_supports_none); device 2073 daemons/fenced/fenced_remote.c parse_action_specific(const xmlNode *xml, const char *peer, const char *device, device 2082 daemons/fenced/fenced_remote.c peer, device, action, props->custom_action_timeout[phase]); device 2089 daemons/fenced/fenced_remote.c peer, device, props->delay_max[phase], action); device 2096 daemons/fenced/fenced_remote.c peer, device, props->delay_base[phase], action); device 2106 daemons/fenced/fenced_remote.c peer, device, action); device 2107 daemons/fenced/fenced_remote.c add_required_device(op, device); device 2117 daemons/fenced/fenced_remote.c peer, action, device); device 2132 daemons/fenced/fenced_remote.c peer_device_info_t *peer, const char *device) device 2141 daemons/fenced/fenced_remote.c g_hash_table_insert(peer->devices, strdup(device), props); device 2147 daemons/fenced/fenced_remote.c peer->host, device); device 2155 daemons/fenced/fenced_remote.c parse_action_specific(xml, peer->host, device, op_requested_action(op), device 2164 daemons/fenced/fenced_remote.c parse_action_specific(child, peer->host, device, "off", device 2167 daemons/fenced/fenced_remote.c parse_action_specific(child, peer->host, device, "on", device 2200 daemons/fenced/fenced_remote.c const char *device = ID(child); device 2202 daemons/fenced/fenced_remote.c if (device) { device 2203 daemons/fenced/fenced_remote.c add_device_properties(child, op, peer, device); device 2337 daemons/fenced/fenced_remote.c const char *device = NULL; device 2352 daemons/fenced/fenced_remote.c device = crm_element_value(dev, F_STONITH_DEVICE); device 2376 daemons/fenced/fenced_remote.c if (op->devices && device && !pcmk__str_eq(op->devices->data, device, pcmk__str_casei)) { device 2379 daemons/fenced/fenced_remote.c device, (const char *) op->devices->data, op->action, op->target); device 2397 daemons/fenced/fenced_remote.c op->id, device, op->target); device 2402 daemons/fenced/fenced_remote.c const char *device = NULL; device 2412 daemons/fenced/fenced_remote.c device = crm_element_value(msg, F_STONITH_DEVICE); device 2420 daemons/fenced/fenced_remote.c device, pcmk_exec_status_str(op->result.execution_status), device 2429 daemons/fenced/fenced_remote.c ((device == NULL)? "" : " using "), device 2430 daemons/fenced/fenced_remote.c ((device == NULL)? "" : device), device 2442 daemons/fenced/fenced_remote.c advance_topology_device_in_level(op, device, msg); device 805 daemons/fenced/pacemaker-fenced.c stonith_device_t *device = NULL; device 820 daemons/fenced/pacemaker-fenced.c while (g_hash_table_iter_next(&iter, NULL, (void **)&device)) { device 821 daemons/fenced/pacemaker-fenced.c if (device->cib_registered) { device 822 daemons/fenced/pacemaker-fenced.c device->dirty = TRUE; device 834 daemons/fenced/pacemaker-fenced.c while (g_hash_table_iter_next(&iter, NULL, (void **)&device)) { device 835 daemons/fenced/pacemaker-fenced.c if (device->dirty) { device 132 include/crm/stonith-ng.h char *device; device 1436 lib/fencing/st_client.c event->device = crm_element_value_copy(data, F_STONITH_DEVICE); device 1449 lib/fencing/st_client.c event->device = crm_element_value_copy(data, F_STONITH_DEVICE); device 1469 lib/fencing/st_client.c free(event->device); device 2638 lib/fencing/st_client.c const char *device = pcmk__s(event->device, "unknown"); device 2662 lib/fencing/st_client.c return crm_strdup_printf("A fencing device (%s) was added", device); device 2666 lib/fencing/st_client.c return crm_strdup_printf("A fencing device (%s) was removed", device); device 2671 lib/fencing/st_client.c device); device 2676 lib/fencing/st_client.c device); device 507 lib/fencing/st_output.c const char *device = va_arg(args, const char *); device 512 lib/fencing/st_output.c if (device) { device 513 lib/fencing/st_output.c char *buf = crm_strdup_printf("Validation of %s on %s %s", agent, device, device 533 lib/fencing/st_output.c const char *device = va_arg(args, const char *); device 538 lib/fencing/st_output.c if (device) { device 539 lib/fencing/st_output.c pcmk__indented_printf(out, "Validation of %s on %s %s\n", agent, device, device 555 lib/fencing/st_output.c const char *device = va_arg(args, const char *); device 564 lib/fencing/st_output.c if (device != NULL) { device 565 lib/fencing/st_output.c crm_xml_add(node, "device", device); device 375 tools/stonith_admin.c const char *device = NULL; device 432 tools/stonith_admin.c device = options.register_dev; device 437 tools/stonith_admin.c device = options.query; device 442 tools/stonith_admin.c device = options.unregister_dev; device 447 tools/stonith_admin.c device = options.targets; device 559 tools/stonith_admin.c rc = st->cmds->monitor(st, st_opts, device, options.timeout); device 561 tools/stonith_admin.c rc = st->cmds->list(st, st_opts, device, NULL, options.timeout); device 567 tools/stonith_admin.c rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000); device 575 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, device 580 tools/stonith_admin.c device, options.agent, pcmk_rc_str(rc)); device 585 tools/stonith_admin.c rc = st->cmds->remove_device(st, st_opts, device); device 589 tools/stonith_admin.c device, pcmk_rc_str(rc)); device 645 tools/stonith_admin.c device = options.devices ? options.devices->key : NULL; device 646 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params,