device 221 daemons/fenced/fenced_cib.c stonith_device_t *device = NULL; device 229 daemons/fenced/fenced_cib.c while (g_hash_table_iter_next(&iter, NULL, (void **)&device)) { device 230 daemons/fenced/fenced_cib.c if (device->cib_registered) { device 231 daemons/fenced/fenced_cib.c device->dirty = TRUE; device 244 daemons/fenced/fenced_cib.c while (g_hash_table_iter_next(&iter, NULL, (void **)&device)) { device 245 daemons/fenced/fenced_cib.c if (device->dirty) { device 72 daemons/fenced/fenced_commands.c static void search_devices_record_result(struct device_search_s *search, const char *device, device 76 daemons/fenced/fenced_commands.c static void read_action_metadata(stonith_device_t *device); device 100 daemons/fenced/fenced_commands.c char *device; device 122 daemons/fenced/fenced_commands.c is_action_required(const char *action, const stonith_device_t *device) device 124 daemons/fenced/fenced_commands.c return (device != NULL) && device->automatic_unfencing device 129 daemons/fenced/fenced_commands.c get_action_delay_max(const stonith_device_t *device, const char *action) device 138 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, PCMK_STONITH_DELAY_MAX); device 147 daemons/fenced/fenced_commands.c get_action_delay_base(const stonith_device_t *device, const char *action, device 157 daemons/fenced/fenced_commands.c hash_value = g_hash_table_lookup(device->params, PCMK_STONITH_DELAY_BASE); device 214 daemons/fenced/fenced_commands.c get_action_timeout(const stonith_device_t *device, const char *action, device 217 daemons/fenced/fenced_commands.c if (action && device && device->params) { device 225 daemons/fenced/fenced_commands.c && !pcmk_is_set(device->flags, st_device_supports_reboot)) { device 227 daemons/fenced/fenced_commands.c device->id); device 233 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, buffer); device 252 daemons/fenced/fenced_commands.c if ((cmd == NULL) || (cmd->device == NULL) || (device_list == NULL)) { device 255 daemons/fenced/fenced_commands.c return g_hash_table_lookup(device_list, cmd->device); device 272 daemons/fenced/fenced_commands.c stonith_device_t *device = g_hash_table_lookup(device_list, device_id); device 274 daemons/fenced/fenced_commands.c if ((device != NULL) && (device->params != NULL)) { device 275 daemons/fenced/fenced_commands.c action = g_hash_table_lookup(device->params, "pcmk_reboot_action"); device 293 daemons/fenced/fenced_commands.c stonith_device_t *device = g_hash_table_lookup(device_list, device_id); device 295 daemons/fenced/fenced_commands.c if (device != NULL) { device 296 daemons/fenced/fenced_commands.c return pcmk_is_set(device->flags, st_device_supports_on); device 316 daemons/fenced/fenced_commands.c free(cmd->device); device 375 daemons/fenced/fenced_commands.c cmd->device = crm_element_value_copy(op, F_STONITH_DEVICE); device 386 daemons/fenced/fenced_commands.c get_action_limit(stonith_device_t * device) device 391 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, PCMK_STONITH_ACTION_LIMIT); device 401 daemons/fenced/fenced_commands.c get_active_cmds(stonith_device_t * device) device 407 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return 0); device 414 daemons/fenced/fenced_commands.c if (cmd->active_on == device) { device 426 daemons/fenced/fenced_commands.c stonith_device_t * device = device 432 daemons/fenced/fenced_commands.c CRM_ASSERT(device); device 436 daemons/fenced/fenced_commands.c pcmk__s(cmd->target, ""), device->id, cmd->timeout); device 437 daemons/fenced/fenced_commands.c cmd->active_on = device; device 443 daemons/fenced/fenced_commands.c stonith_device_t *device = data; device 446 daemons/fenced/fenced_commands.c switch (get_agent_metadata(device->agent, &device->agent_metadata)) { device 448 daemons/fenced/fenced_commands.c if (device->agent_metadata) { device 449 daemons/fenced/fenced_commands.c read_action_metadata(device); device 450 daemons/fenced/fenced_commands.c stonith__device_parameter_flags(&(device->flags), device->id, device 451 daemons/fenced/fenced_commands.c device->agent_metadata); device 456 daemons/fenced/fenced_commands.c period_ms = pcmk__mainloop_timer_get_period(device->timer); device 458 daemons/fenced/fenced_commands.c mainloop_timer_set_period(device->timer, 2 * period_ms); device 488 daemons/fenced/fenced_commands.c stonith_device_execute(stonith_device_t * device) device 500 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return FALSE); device 502 daemons/fenced/fenced_commands.c active_cmds = get_active_cmds(device); device 503 daemons/fenced/fenced_commands.c action_limit = get_action_limit(device); device 506 daemons/fenced/fenced_commands.c device->id, action_limit, active_cmds, device 511 daemons/fenced/fenced_commands.c for (gIter = device->pending_ops; gIter != NULL; gIter = gIterNext) { device 522 daemons/fenced/fenced_commands.c device->id, pending_op->start_delay); device 526 daemons/fenced/fenced_commands.c device->pending_ops = g_list_remove_link(device->pending_ops, gIter); device 534 daemons/fenced/fenced_commands.c crm_trace("No actions using %s are needed", device->id); device 538 daemons/fenced/fenced_commands.c if (pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT, device 553 daemons/fenced/fenced_commands.c exec_rc = pcmk__substitute_secrets(device->id, device->params); device 558 daemons/fenced/fenced_commands.c device->id, pcmk_rc_str(exec_rc)); device 562 daemons/fenced/fenced_commands.c device->id, pcmk_rc_str(exec_rc)); device 572 daemons/fenced/fenced_commands.c && !pcmk_is_set(device->flags, st_device_supports_reboot)) { device 577 daemons/fenced/fenced_commands.c pcmk__s(cmd->target, ""), device->id, device->agent); device 581 daemons/fenced/fenced_commands.c if (pcmk_is_set(device->flags, st_device_supports_parameter_port)) { device 584 daemons/fenced/fenced_commands.c } else if (pcmk_is_set(device->flags, st_device_supports_parameter_plug)) { device 588 daemons/fenced/fenced_commands.c action = stonith__action_create(device->agent, action_str, cmd->target, device 590 daemons/fenced/fenced_commands.c device->params, device->aliases, host_arg); device 594 daemons/fenced/fenced_commands.c cmd->activating_on = device; device 607 daemons/fenced/fenced_commands.c if (device->pending_ops) { device 608 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 623 daemons/fenced/fenced_commands.c stonith_device_t *device = cmd_device(cmd); device 626 daemons/fenced/fenced_commands.c if (device) { device 627 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 634 daemons/fenced/fenced_commands.c schedule_stonith_command(async_command_t * cmd, stonith_device_t * device) device 641 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return); device 643 daemons/fenced/fenced_commands.c if (cmd->device) { device 644 daemons/fenced/fenced_commands.c free(cmd->device); device 647 daemons/fenced/fenced_commands.c if (device->include_nodeid && (cmd->target != NULL)) { device 653 daemons/fenced/fenced_commands.c cmd->device = strdup(device->id); device 654 daemons/fenced/fenced_commands.c cmd->timeout = get_action_timeout(device, cmd->action, cmd->default_timeout); device 662 daemons/fenced/fenced_commands.c device->id, cmd->origin, cmd->remote_op_id, cmd->timeout); device 668 daemons/fenced/fenced_commands.c device->id, cmd->client, cmd->timeout); device 671 daemons/fenced/fenced_commands.c device->pending_ops = g_list_append(device->pending_ops, cmd); device 672 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 679 daemons/fenced/fenced_commands.c delay_max = get_action_delay_max(device, cmd->action); device 680 daemons/fenced/fenced_commands.c delay_base = get_action_delay_base(device, cmd->action, cmd->target); device 688 daemons/fenced/fenced_commands.c delay_base, delay_max, cmd->action, device->id); device 704 daemons/fenced/fenced_commands.c device->id, cmd->start_delay, cmd->timeout, device 715 daemons/fenced/fenced_commands.c stonith_device_t *device = data; device 717 daemons/fenced/fenced_commands.c g_hash_table_destroy(device->params); device 718 daemons/fenced/fenced_commands.c g_hash_table_destroy(device->aliases); device 720 daemons/fenced/fenced_commands.c for (gIter = device->pending_ops; gIter != NULL; gIter = gIter->next) { device 723 daemons/fenced/fenced_commands.c crm_warn("Removal of device '%s' purged operation '%s'", device->id, cmd->action); device 727 daemons/fenced/fenced_commands.c g_list_free(device->pending_ops); device 729 daemons/fenced/fenced_commands.c g_list_free_full(device->targets, free); device 731 daemons/fenced/fenced_commands.c if (device->timer) { device 732 daemons/fenced/fenced_commands.c mainloop_timer_stop(device->timer); device 733 daemons/fenced/fenced_commands.c mainloop_timer_del(device->timer); device 736 daemons/fenced/fenced_commands.c mainloop_destroy_trigger(device->work); device 738 daemons/fenced/fenced_commands.c free_xml(device->agent_metadata); device 739 daemons/fenced/fenced_commands.c free(device->namespace); device 740 daemons/fenced/fenced_commands.c if (device->on_target_actions != NULL) { device 741 daemons/fenced/fenced_commands.c g_string_free(device->on_target_actions, TRUE); device 743 daemons/fenced/fenced_commands.c free(device->agent); device 744 daemons/fenced/fenced_commands.c free(device->id); device 745 daemons/fenced/fenced_commands.c free(device); device 922 daemons/fenced/fenced_commands.c read_action_metadata(stonith_device_t *device) device 928 daemons/fenced/fenced_commands.c if (device->agent_metadata == NULL) { device 932 daemons/fenced/fenced_commands.c xpath = xpath_search(device->agent_metadata, "//action"); device 950 daemons/fenced/fenced_commands.c stonith__set_device_flags(device->flags, device->id, device 953 daemons/fenced/fenced_commands.c stonith__set_device_flags(device->flags, device->id, device 956 daemons/fenced/fenced_commands.c stonith__set_device_flags(device->flags, device->id, device 962 daemons/fenced/fenced_commands.c device->automatic_unfencing = TRUE; device 964 daemons/fenced/fenced_commands.c stonith__set_device_flags(device->flags, device->id, device 969 daemons/fenced/fenced_commands.c pcmk__add_word(&(device->on_target_actions), 64, action); device 1072 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 1075 daemons/fenced/fenced_commands.c CRM_CHECK(agent != NULL, return device); device 1077 daemons/fenced/fenced_commands.c device = calloc(1, sizeof(stonith_device_t)); device 1079 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, {free(agent); return device;}); device 1081 daemons/fenced/fenced_commands.c device->id = crm_element_value_copy(dev, XML_ATTR_ID); device 1082 daemons/fenced/fenced_commands.c device->agent = agent; device 1083 daemons/fenced/fenced_commands.c device->namespace = crm_element_value_copy(dev, "namespace"); device 1084 daemons/fenced/fenced_commands.c device->params = xml2device_params(device->id, dev); device 1086 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, PCMK_STONITH_HOST_LIST); device 1088 daemons/fenced/fenced_commands.c device->targets = stonith__parse_targets(value); device 1091 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, PCMK_STONITH_HOST_MAP); device 1092 daemons/fenced/fenced_commands.c device->aliases = build_port_aliases(value, &(device->targets)); device 1094 daemons/fenced/fenced_commands.c value = target_list_type(device); device 1095 daemons/fenced/fenced_commands.c if (!pcmk__str_eq(value, "static-list", pcmk__str_casei) && device->targets) { device 1097 daemons/fenced/fenced_commands.c g_list_free_full(device->targets, free); device 1098 daemons/fenced/fenced_commands.c device->targets = NULL; device 1100 daemons/fenced/fenced_commands.c switch (get_agent_metadata(device->agent, &device->agent_metadata)) { device 1102 daemons/fenced/fenced_commands.c if (device->agent_metadata) { device 1103 daemons/fenced/fenced_commands.c read_action_metadata(device); device 1104 daemons/fenced/fenced_commands.c stonith__device_parameter_flags(&(device->flags), device->id, device 1105 daemons/fenced/fenced_commands.c device->agent_metadata); device 1110 daemons/fenced/fenced_commands.c if (device->timer == NULL) { device 1111 daemons/fenced/fenced_commands.c device->timer = mainloop_timer_add("get_agent_metadata", 10 * 1000, device 1112 daemons/fenced/fenced_commands.c TRUE, get_agent_metadata_cb, device); device 1114 daemons/fenced/fenced_commands.c if (!mainloop_timer_running(device->timer)) { device 1115 daemons/fenced/fenced_commands.c mainloop_timer_start(device->timer); device 1123 daemons/fenced/fenced_commands.c value = g_hash_table_lookup(device->params, "nodeid"); device 1125 daemons/fenced/fenced_commands.c device->include_nodeid = is_nodeid_required(device->agent_metadata); device 1130 daemons/fenced/fenced_commands.c device->automatic_unfencing = TRUE; device 1133 daemons/fenced/fenced_commands.c if (is_action_required(PCMK_ACTION_ON, device)) { device 1134 daemons/fenced/fenced_commands.c crm_info("Fencing device '%s' requires unfencing", device->id); device 1137 daemons/fenced/fenced_commands.c if (device->on_target_actions != NULL) { device 1139 daemons/fenced/fenced_commands.c "on target", device->id, device 1140 daemons/fenced/fenced_commands.c (const char *) device->on_target_actions->str); device 1143 daemons/fenced/fenced_commands.c device->work = mainloop_add_trigger(G_PRIORITY_HIGH, stonith_device_dispatch, device); device 1146 daemons/fenced/fenced_commands.c return device; device 1151 daemons/fenced/fenced_commands.c stonith_device_t * device, device 1169 daemons/fenced/fenced_commands.c cmd->device = strdup(device->id); device 1177 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 1353 daemons/fenced/fenced_commands.c device_has_duplicate(const stonith_device_t *device) device 1355 daemons/fenced/fenced_commands.c stonith_device_t *dup = g_hash_table_lookup(device_list, device->id); device 1358 daemons/fenced/fenced_commands.c crm_trace("No match for %s", device->id); device 1361 daemons/fenced/fenced_commands.c } else if (!pcmk__str_eq(dup->agent, device->agent, pcmk__str_casei)) { device 1362 daemons/fenced/fenced_commands.c crm_trace("Different agent: %s != %s", dup->agent, device->agent); device 1367 daemons/fenced/fenced_commands.c if (device_params_diff(device->params, dup->params) || device 1368 daemons/fenced/fenced_commands.c device_params_diff(dup->params, device->params)) { device 1380 daemons/fenced/fenced_commands.c stonith_device_t *device = build_device_from_xml(dev); device 1384 daemons/fenced/fenced_commands.c CRM_CHECK(device != NULL, return -ENOMEM); device 1387 daemons/fenced/fenced_commands.c if (pcmk__str_eq(device->id, STONITH_WATCHDOG_ID, pcmk__str_none) || device 1388 daemons/fenced/fenced_commands.c pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT, device 1395 daemons/fenced/fenced_commands.c } else if (!pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT, device 1399 daemons/fenced/fenced_commands.c device->agent?device->agent:""); device 1402 daemons/fenced/fenced_commands.c } else if (!pcmk__str_eq(device->id, STONITH_WATCHDOG_ID, device 1406 daemons/fenced/fenced_commands.c device->id?device->id:""); device 1410 daemons/fenced/fenced_commands.c if (pcmk__str_eq(device->agent, STONITH_WATCHDOG_AGENT, device 1416 daemons/fenced/fenced_commands.c stonith_watchdog_targets = device->targets; device 1417 daemons/fenced/fenced_commands.c device->targets = NULL; device 1420 daemons/fenced/fenced_commands.c g_list_free_full(device->targets, free); device 1421 daemons/fenced/fenced_commands.c device->targets = stonith__parse_targets(stonith_our_uname); device 1422 daemons/fenced/fenced_commands.c g_hash_table_replace(device->params, device 1431 daemons/fenced/fenced_commands.c device->targets = NULL; device 1432 daemons/fenced/fenced_commands.c stonith_device_remove(device->id, from_cib); device 1434 daemons/fenced/fenced_commands.c free_device(device); device 1438 daemons/fenced/fenced_commands.c dup = device_has_duplicate(device); device 1442 daemons/fenced/fenced_commands.c device->id, ndevices, pcmk__plural_s(ndevices)); device 1443 daemons/fenced/fenced_commands.c free_device(device); device 1444 daemons/fenced/fenced_commands.c device = dup; device 1445 daemons/fenced/fenced_commands.c dup = g_hash_table_lookup(device_list, device->id); device 1449 daemons/fenced/fenced_commands.c stonith_device_t *old = g_hash_table_lookup(device_list, device->id); device 1456 daemons/fenced/fenced_commands.c crm_info("Overwriting existing entry for %s from CIB", device->id); device 1457 daemons/fenced/fenced_commands.c device->pending_ops = old->pending_ops; device 1458 daemons/fenced/fenced_commands.c device->api_registered = TRUE; device 1460 daemons/fenced/fenced_commands.c if (device->pending_ops) { device 1461 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 1464 daemons/fenced/fenced_commands.c g_hash_table_replace(device_list, device->id, device); device 1468 daemons/fenced/fenced_commands.c device->id, ndevices, pcmk__plural_s(ndevices)); device 1472 daemons/fenced/fenced_commands.c device->cib_registered = TRUE; device 1474 daemons/fenced/fenced_commands.c device->api_registered = TRUE; device 1483 daemons/fenced/fenced_commands.c stonith_device_t *device = g_hash_table_lookup(device_list, id); device 1486 daemons/fenced/fenced_commands.c if (!device) { device 1494 daemons/fenced/fenced_commands.c device->cib_registered = FALSE; device 1496 daemons/fenced/fenced_commands.c device->verified = FALSE; device 1497 daemons/fenced/fenced_commands.c device->api_registered = FALSE; device 1500 daemons/fenced/fenced_commands.c if (!device->cib_registered && !device->api_registered) { device 1509 daemons/fenced/fenced_commands.c (device->cib_registered? " cib" : ""), device 1510 daemons/fenced/fenced_commands.c (device->api_registered? " api" : "")); device 1806 daemons/fenced/fenced_commands.c const char *device = dIter->value; device 1808 daemons/fenced/fenced_commands.c crm_trace("Adding device '%s' for %s[%d]", device, tp->target, id); device 1809 daemons/fenced/fenced_commands.c tp->levels[id] = g_list_append(tp->levels[id], strdup(device)); device 1955 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 1986 daemons/fenced/fenced_commands.c device = g_hash_table_lookup(device_list, id); device 1987 daemons/fenced/fenced_commands.c if (device == NULL) { device 1994 daemons/fenced/fenced_commands.c } else if (!device->api_registered device 2011 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 2016 daemons/fenced/fenced_commands.c search_devices_record_result(struct device_search_s *search, const char *device, gboolean can_fence) device 2019 daemons/fenced/fenced_commands.c if (can_fence && device) { device 2021 daemons/fenced/fenced_commands.c stonith_device_t *dev = g_hash_table_lookup(device_list, device); device 2026 daemons/fenced/fenced_commands.c search->capable = g_list_append(search->capable, strdup(device)); device 2057 daemons/fenced/fenced_commands.c localhost_is_eligible(const stonith_device_t *device, const char *action, device 2063 daemons/fenced/fenced_commands.c if ((device != NULL) && (action != NULL) device 2064 daemons/fenced/fenced_commands.c && (device->on_target_actions != NULL) device 2065 daemons/fenced/fenced_commands.c && (strstr((const char*) device->on_target_actions->str, device 2070 daemons/fenced/fenced_commands.c "host, not %s", action, device->id, target); device 2094 daemons/fenced/fenced_commands.c localhost_is_eligible_with_remap(const stonith_device_t *device, device 2099 daemons/fenced/fenced_commands.c if (localhost_is_eligible(device, action, target, allow_self)) { device 2111 daemons/fenced/fenced_commands.c if (localhost_is_eligible(device, PCMK_ACTION_OFF, target, allow_self) device 2112 daemons/fenced/fenced_commands.c || localhost_is_eligible(device, PCMK_ACTION_ON, target, FALSE)) { device 2297 daemons/fenced/fenced_commands.c const stonith_device_t *device, device 2304 daemons/fenced/fenced_commands.c CRM_CHECK(xml && action && device, return); device 2306 daemons/fenced/fenced_commands.c if (is_action_required(action, device)) { device 2307 daemons/fenced/fenced_commands.c crm_trace("Action '%s' is required using %s", action, device->id); device 2311 daemons/fenced/fenced_commands.c action_specific_timeout = get_action_timeout(device, action, 0); device 2314 daemons/fenced/fenced_commands.c action, action_specific_timeout, device->id); device 2318 daemons/fenced/fenced_commands.c delay_max = get_action_delay_max(device, action); device 2321 daemons/fenced/fenced_commands.c action, delay_max, device->id); device 2325 daemons/fenced/fenced_commands.c delay_base = get_action_delay_base(device, action, target); device 2332 daemons/fenced/fenced_commands.c action, delay_max, device->id); device 2335 daemons/fenced/fenced_commands.c action, delay_base, device->id); device 2339 daemons/fenced/fenced_commands.c action, delay_base, delay_max, device->id); device 2354 daemons/fenced/fenced_commands.c add_disallowed(xmlNode *xml, const char *action, const stonith_device_t *device, device 2357 daemons/fenced/fenced_commands.c if (!localhost_is_eligible(device, action, target, allow_suicide)) { device 2359 daemons/fenced/fenced_commands.c action, device->id); device 2376 daemons/fenced/fenced_commands.c const stonith_device_t *device, const char *target, device 2382 daemons/fenced/fenced_commands.c add_action_specific_attributes(child, action, device, target); device 2383 daemons/fenced/fenced_commands.c add_disallowed(child, action, device, target, allow_suicide); device 2433 daemons/fenced/fenced_commands.c stonith_device_t *device = g_hash_table_lookup(device_list, lpc->data); device 2436 daemons/fenced/fenced_commands.c if (!device) { device 2445 daemons/fenced/fenced_commands.c crm_xml_add(dev, XML_ATTR_ID, device->id); device 2446 daemons/fenced/fenced_commands.c crm_xml_add(dev, "namespace", device->namespace); device 2447 daemons/fenced/fenced_commands.c crm_xml_add(dev, "agent", device->agent); device 2448 daemons/fenced/fenced_commands.c crm_xml_add_int(dev, F_STONITH_DEVICE_VERIFIED, device->verified); device 2449 daemons/fenced/fenced_commands.c crm_xml_add_int(dev, F_STONITH_DEVICE_SUPPORT_FLAGS, device->flags); device 2454 daemons/fenced/fenced_commands.c if (!pcmk_is_set(device->flags, st_device_supports_reboot) device 2458 daemons/fenced/fenced_commands.c device->id); device 2463 daemons/fenced/fenced_commands.c add_action_specific_attributes(dev, action, device, query->target); device 2476 daemons/fenced/fenced_commands.c add_disallowed(dev, action, device, query->target, device 2478 daemons/fenced/fenced_commands.c add_action_reply(dev, PCMK_ACTION_OFF, device, query->target, device 2480 daemons/fenced/fenced_commands.c add_action_reply(dev, PCMK_ACTION_ON, device, query->target, FALSE); device 2487 daemons/fenced/fenced_commands.c g_hash_table_foreach(device->params, hash2field, attrs); device 2565 daemons/fenced/fenced_commands.c if (cmd->device != NULL) { device 2566 daemons/fenced/fenced_commands.c pcmk__g_strcat(msg, "using ", cmd->device, " ", NULL); device 2599 daemons/fenced/fenced_commands.c char *prefix = crm_strdup_printf("%s[%d]", cmd->device, pid); device 2665 daemons/fenced/fenced_commands.c crm_xml_add(notify_data, F_STONITH_DEVICE, cmd->device); device 2677 daemons/fenced/fenced_commands.c stonith_device_t *device = cmd_device(cmd); device 2679 daemons/fenced/fenced_commands.c if (device) { device 2681 daemons/fenced/fenced_commands.c cmd->action, device->id); device 2682 daemons/fenced/fenced_commands.c device->pending_ops = g_list_remove(device->pending_ops, cmd); device 2729 daemons/fenced/fenced_commands.c !pcmk__str_eq(cmd->device, cmd_other->device, pcmk__str_casei)) { device 2782 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 2787 daemons/fenced/fenced_commands.c device = cmd_device(cmd); device 2791 daemons/fenced/fenced_commands.c if (device) { device 2792 daemons/fenced/fenced_commands.c if (!device->verified && pcmk__result_ok(result) device 2797 daemons/fenced/fenced_commands.c device->verified = TRUE; device 2800 daemons/fenced/fenced_commands.c mainloop_set_trigger(device->work); device 2807 daemons/fenced/fenced_commands.c && !is_action_required(cmd->action, device)) { device 2846 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 2855 daemons/fenced/fenced_commands.c device = g_hash_table_lookup(device_list, devices->data); device 2858 daemons/fenced/fenced_commands.c if (device == NULL) { // No device found device 2872 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 2887 daemons/fenced/fenced_commands.c stonith_device_t *device = NULL; device 2904 daemons/fenced/fenced_commands.c device = g_hash_table_lookup(device_list, device_id); device 2905 daemons/fenced/fenced_commands.c if (device == NULL) { device 2911 daemons/fenced/fenced_commands.c schedule_stonith_command(cmd, device); device 3015 daemons/fenced/fenced_commands.c crm_xml_add(reply, F_STONITH_DEVICE, cmd->device); device 3223 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); device 3225 daemons/fenced/fenced_commands.c if (pcmk__str_eq(device, "manual_ack", pcmk__str_casei)) { device 3331 daemons/fenced/fenced_commands.c const char *device = crm_element_value(dev, F_STONITH_DEVICE); device 3338 daemons/fenced/fenced_commands.c target, (device? device : "any device")); device 3351 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), PCMK_ACTION_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 1867 daemons/fenced/fenced_remote.c if (device) { device 1869 daemons/fenced/fenced_remote.c get_device_timeout(op, peer, device, true); device 1872 daemons/fenced/fenced_remote.c peer->host, op->action, op->target, device, device 1874 daemons/fenced/fenced_remote.c crm_xml_add(remote_op, F_STONITH_DEVICE, device); device 1891 daemons/fenced/fenced_remote.c && (pcmk__str_eq(device, STONITH_WATCHDOG_ID, pcmk__str_none) device 1929 daemons/fenced/fenced_remote.c "after successful 'off'", device, op->target); device 1930 daemons/fenced/fenced_remote.c advance_topology_device_in_level(op, device, NULL); device 1951 daemons/fenced/fenced_remote.c if(stonith_watchdog_timeout_ms > 0 && pcmk__str_eq(device, device 1992 daemons/fenced/fenced_remote.c op->action, op->target, (device? " using " : ""), device 1993 daemons/fenced/fenced_remote.c (device? device : ""), op->client_name, op->id); device 2026 daemons/fenced/fenced_remote.c GList *device = NULL; device 2044 daemons/fenced/fenced_remote.c for (device = tp->levels[i]; device; device = device->next) { device 2052 daemons/fenced/fenced_remote.c match = find_peer_device(op, peer, device->data, st_device_supports_none); device 2076 daemons/fenced/fenced_remote.c parse_action_specific(const xmlNode *xml, const char *peer, const char *device, device 2085 daemons/fenced/fenced_remote.c peer, device, action, props->custom_action_timeout[phase]); device 2092 daemons/fenced/fenced_remote.c peer, device, props->delay_max[phase], action); device 2099 daemons/fenced/fenced_remote.c peer, device, props->delay_base[phase], action); device 2109 daemons/fenced/fenced_remote.c peer, device, action); device 2110 daemons/fenced/fenced_remote.c add_required_device(op, device); device 2120 daemons/fenced/fenced_remote.c peer, action, device); device 2135 daemons/fenced/fenced_remote.c peer_device_info_t *peer, const char *device) device 2144 daemons/fenced/fenced_remote.c g_hash_table_insert(peer->devices, strdup(device), props); device 2150 daemons/fenced/fenced_remote.c peer->host, device); device 2158 daemons/fenced/fenced_remote.c parse_action_specific(xml, peer->host, device, op_requested_action(op), device 2167 daemons/fenced/fenced_remote.c parse_action_specific(child, peer->host, device, PCMK_ACTION_OFF, device 2170 daemons/fenced/fenced_remote.c parse_action_specific(child, peer->host, device, PCMK_ACTION_ON, device 2203 daemons/fenced/fenced_remote.c const char *device = ID(child); device 2205 daemons/fenced/fenced_remote.c if (device) { device 2206 daemons/fenced/fenced_remote.c add_device_properties(child, op, peer, device); device 2340 daemons/fenced/fenced_remote.c const char *device = NULL; device 2355 daemons/fenced/fenced_remote.c device = crm_element_value(dev, F_STONITH_DEVICE); device 2379 daemons/fenced/fenced_remote.c if (op->devices && device && !pcmk__str_eq(op->devices->data, device, pcmk__str_casei)) { device 2382 daemons/fenced/fenced_remote.c device, (const char *) op->devices->data, op->action, op->target); device 2400 daemons/fenced/fenced_remote.c op->id, device, op->target); device 2405 daemons/fenced/fenced_remote.c const char *device = NULL; device 2415 daemons/fenced/fenced_remote.c device = crm_element_value(msg, F_STONITH_DEVICE); device 2423 daemons/fenced/fenced_remote.c device, pcmk_exec_status_str(op->result.execution_status), device 2432 daemons/fenced/fenced_remote.c ((device == NULL)? "" : " using "), device 2433 daemons/fenced/fenced_remote.c ((device == NULL)? "" : device), device 2445 daemons/fenced/fenced_remote.c advance_topology_device_in_level(op, device, msg); device 132 include/crm/stonith-ng.h char *device; device 1447 lib/fencing/st_client.c event->device = crm_element_value_copy(data, F_STONITH_DEVICE); device 1460 lib/fencing/st_client.c event->device = crm_element_value_copy(data, F_STONITH_DEVICE); device 1480 lib/fencing/st_client.c free(event->device); device 2650 lib/fencing/st_client.c const char *device = pcmk__s(event->device, "unknown"); device 2674 lib/fencing/st_client.c return crm_strdup_printf("A fencing device (%s) was added", device); device 2678 lib/fencing/st_client.c return crm_strdup_printf("A fencing device (%s) was removed", device); device 2683 lib/fencing/st_client.c device); device 2688 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 379 tools/stonith_admin.c const char *device = NULL; device 436 tools/stonith_admin.c device = options.register_dev; device 441 tools/stonith_admin.c device = options.query; device 446 tools/stonith_admin.c device = options.unregister_dev; device 451 tools/stonith_admin.c device = options.targets; device 563 tools/stonith_admin.c rc = st->cmds->monitor(st, st_opts, device, options.timeout); device 565 tools/stonith_admin.c rc = st->cmds->list(st, st_opts, device, NULL, options.timeout); device 571 tools/stonith_admin.c rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000); device 579 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, device 584 tools/stonith_admin.c device, options.agent, pcmk_rc_str(rc)); device 589 tools/stonith_admin.c rc = st->cmds->remove_device(st, st_opts, device); device 593 tools/stonith_admin.c device, pcmk_rc_str(rc)); device 649 tools/stonith_admin.c device = options.devices ? options.devices->key : NULL; device 650 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params,