device            225 daemons/fenced/fenced_cib.c     stonith_device_t *device = NULL;
device            233 daemons/fenced/fenced_cib.c     while (g_hash_table_iter_next(&iter, NULL, (void **)&device)) {
device            234 daemons/fenced/fenced_cib.c         if (device->cib_registered) {
device            235 daemons/fenced/fenced_cib.c             device->dirty = TRUE;
device            248 daemons/fenced/fenced_cib.c     while (g_hash_table_iter_next(&iter, NULL, (void **)&device)) {
device            249 daemons/fenced/fenced_cib.c         if (device->dirty) {
device             71 daemons/fenced/fenced_commands.c static void search_devices_record_result(struct device_search_s *search, const char *device,
device             75 daemons/fenced/fenced_commands.c static void read_action_metadata(stonith_device_t *device);
device             99 daemons/fenced/fenced_commands.c     char *device;
device            121 daemons/fenced/fenced_commands.c is_action_required(const char *action, const stonith_device_t *device)
device            123 daemons/fenced/fenced_commands.c     return (device != NULL) && device->automatic_unfencing
device            128 daemons/fenced/fenced_commands.c get_action_delay_max(const stonith_device_t *device, const char *action)
device            137 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            213 daemons/fenced/fenced_commands.c get_action_timeout(const stonith_device_t *device, const char *action,
device            216 daemons/fenced/fenced_commands.c     if (action && device && device->params) {
device            224 daemons/fenced/fenced_commands.c             && !pcmk_is_set(device->flags, st_device_supports_reboot)) {
device            226 daemons/fenced/fenced_commands.c                       device->id);
device            232 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            380 daemons/fenced/fenced_commands.c     cmd->device = crm_element_value_copy(op, PCMK__XA_ST_DEVICE_ID);
device            391 daemons/fenced/fenced_commands.c get_action_limit(stonith_device_t * device)
device            396 daemons/fenced/fenced_commands.c     value = g_hash_table_lookup(device->params, PCMK_STONITH_ACTION_LIMIT);
device            406 daemons/fenced/fenced_commands.c get_active_cmds(stonith_device_t * device)
device            412 daemons/fenced/fenced_commands.c     CRM_CHECK(device != NULL, return 0);
device            419 daemons/fenced/fenced_commands.c         if (cmd->active_on == device) {
device            431 daemons/fenced/fenced_commands.c     stonith_device_t * device =
device            437 daemons/fenced/fenced_commands.c     pcmk__assert(device != NULL);
device            441 daemons/fenced/fenced_commands.c               pcmk__s(cmd->target, ""), device->id, cmd->timeout);
device            442 daemons/fenced/fenced_commands.c     cmd->active_on = device;
device            448 daemons/fenced/fenced_commands.c     stonith_device_t *device = data;
device            451 daemons/fenced/fenced_commands.c     switch (get_agent_metadata(device->agent, &device->agent_metadata)) {
device            453 daemons/fenced/fenced_commands.c             if (device->agent_metadata) {
device            454 daemons/fenced/fenced_commands.c                 read_action_metadata(device);
device            455 daemons/fenced/fenced_commands.c                 stonith__device_parameter_flags(&(device->flags), device->id,
device            456 daemons/fenced/fenced_commands.c                                         device->agent_metadata);
device            461 daemons/fenced/fenced_commands.c             period_ms = pcmk__mainloop_timer_get_period(device->timer);
device            463 daemons/fenced/fenced_commands.c                 mainloop_timer_set_period(device->timer, 2 * period_ms);
device            493 daemons/fenced/fenced_commands.c stonith_device_execute(stonith_device_t * device)
device            505 daemons/fenced/fenced_commands.c     CRM_CHECK(device != NULL, return FALSE);
device            507 daemons/fenced/fenced_commands.c     active_cmds = get_active_cmds(device);
device            508 daemons/fenced/fenced_commands.c     action_limit = get_action_limit(device);
device            511 daemons/fenced/fenced_commands.c                   device->id, action_limit, active_cmds,
device            516 daemons/fenced/fenced_commands.c     for (gIter = device->pending_ops; gIter != NULL; gIter = gIterNext) {
device            527 daemons/fenced/fenced_commands.c                       device->id, pending_op->start_delay);
device            531 daemons/fenced/fenced_commands.c         device->pending_ops = g_list_remove_link(device->pending_ops, gIter);
device            539 daemons/fenced/fenced_commands.c         crm_trace("No actions using %s are needed", device->id);
device            543 daemons/fenced/fenced_commands.c     if (pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT,
device            558 daemons/fenced/fenced_commands.c     exec_rc = pcmk__substitute_secrets(device->id, device->params);
device            563 daemons/fenced/fenced_commands.c                      device->id, pcmk_rc_str(exec_rc));
device            567 daemons/fenced/fenced_commands.c                      device->id, pcmk_rc_str(exec_rc));
device            577 daemons/fenced/fenced_commands.c         && !pcmk_is_set(device->flags, st_device_supports_reboot)) {
device            582 daemons/fenced/fenced_commands.c                    pcmk__s(cmd->target, ""), device->id, device->agent);
device            586 daemons/fenced/fenced_commands.c     if (pcmk_is_set(device->flags, st_device_supports_parameter_port)) {
device            589 daemons/fenced/fenced_commands.c     } else if (pcmk_is_set(device->flags, st_device_supports_parameter_plug)) {
device            593 daemons/fenced/fenced_commands.c     action = stonith__action_create(device->agent, action_str, cmd->target,
device            595 daemons/fenced/fenced_commands.c                                     device->params, device->aliases, host_arg);
device            599 daemons/fenced/fenced_commands.c     cmd->activating_on = device;
device            612 daemons/fenced/fenced_commands.c     if (device->pending_ops) {
device            613 daemons/fenced/fenced_commands.c         mainloop_set_trigger(device->work);
device            628 daemons/fenced/fenced_commands.c     stonith_device_t *device = cmd_device(cmd);
device            631 daemons/fenced/fenced_commands.c     if (device) {
device            632 daemons/fenced/fenced_commands.c         mainloop_set_trigger(device->work);
device            639 daemons/fenced/fenced_commands.c schedule_stonith_command(async_command_t * cmd, stonith_device_t * device)
device            646 daemons/fenced/fenced_commands.c     CRM_CHECK(device != NULL, return);
device            648 daemons/fenced/fenced_commands.c     if (cmd->device) {
device            649 daemons/fenced/fenced_commands.c         free(cmd->device);
device            652 daemons/fenced/fenced_commands.c     if (device->include_nodeid && (cmd->target != NULL)) {
device            659 daemons/fenced/fenced_commands.c     cmd->device = pcmk__str_copy(device->id);
device            660 daemons/fenced/fenced_commands.c     cmd->timeout = get_action_timeout(device, cmd->action, cmd->default_timeout);
device            668 daemons/fenced/fenced_commands.c                   device->id, cmd->origin, cmd->remote_op_id, cmd->timeout);
device            674 daemons/fenced/fenced_commands.c                   device->id, cmd->client, cmd->timeout);
device            677 daemons/fenced/fenced_commands.c     device->pending_ops = g_list_append(device->pending_ops, cmd);
device            678 daemons/fenced/fenced_commands.c     mainloop_set_trigger(device->work);
device            685 daemons/fenced/fenced_commands.c     delay_max = get_action_delay_max(device, cmd->action);
device            686 daemons/fenced/fenced_commands.c     delay_base = get_action_delay_base(device, cmd->action, cmd->target);
device            694 daemons/fenced/fenced_commands.c                  delay_base, delay_max, cmd->action, device->id);
device            710 daemons/fenced/fenced_commands.c                    device->id, cmd->start_delay, cmd->timeout,
device            721 daemons/fenced/fenced_commands.c     stonith_device_t *device = data;
device            723 daemons/fenced/fenced_commands.c     g_hash_table_destroy(device->params);
device            724 daemons/fenced/fenced_commands.c     g_hash_table_destroy(device->aliases);
device            726 daemons/fenced/fenced_commands.c     for (gIter = device->pending_ops; gIter != NULL; gIter = gIter->next) {
device            729 daemons/fenced/fenced_commands.c         crm_warn("Removal of device '%s' purged operation '%s'", device->id, cmd->action);
device            733 daemons/fenced/fenced_commands.c     g_list_free(device->pending_ops);
device            735 daemons/fenced/fenced_commands.c     g_list_free_full(device->targets, free);
device            737 daemons/fenced/fenced_commands.c     if (device->timer) {
device            738 daemons/fenced/fenced_commands.c         mainloop_timer_stop(device->timer);
device            739 daemons/fenced/fenced_commands.c         mainloop_timer_del(device->timer);
device            742 daemons/fenced/fenced_commands.c     mainloop_destroy_trigger(device->work);
device            744 daemons/fenced/fenced_commands.c     free_xml(device->agent_metadata);
device            745 daemons/fenced/fenced_commands.c     free(device->namespace);
device            746 daemons/fenced/fenced_commands.c     if (device->on_target_actions != NULL) {
device            747 daemons/fenced/fenced_commands.c         g_string_free(device->on_target_actions, TRUE);
device            749 daemons/fenced/fenced_commands.c     free(device->agent);
device            750 daemons/fenced/fenced_commands.c     free(device->id);
device            751 daemons/fenced/fenced_commands.c     free(device);
device            929 daemons/fenced/fenced_commands.c read_action_metadata(stonith_device_t *device)
device            935 daemons/fenced/fenced_commands.c     if (device->agent_metadata == NULL) {
device            939 daemons/fenced/fenced_commands.c     xpath = xpath_search(device->agent_metadata, "//action");
device            957 daemons/fenced/fenced_commands.c             stonith__set_device_flags(device->flags, device->id,
device            960 daemons/fenced/fenced_commands.c             stonith__set_device_flags(device->flags, device->id,
device            963 daemons/fenced/fenced_commands.c             stonith__set_device_flags(device->flags, device->id,
device            974 daemons/fenced/fenced_commands.c                 device->automatic_unfencing = TRUE;
device            976 daemons/fenced/fenced_commands.c             stonith__set_device_flags(device->flags, device->id,
device            983 daemons/fenced/fenced_commands.c             pcmk__add_word(&(device->on_target_actions), 64, action);
device           1087 daemons/fenced/fenced_commands.c     stonith_device_t *device = NULL;
device           1090 daemons/fenced/fenced_commands.c     CRM_CHECK(agent != NULL, return device);
device           1092 daemons/fenced/fenced_commands.c     device = pcmk__assert_alloc(1, sizeof(stonith_device_t));
device           1094 daemons/fenced/fenced_commands.c     device->id = crm_element_value_copy(dev, PCMK_XA_ID);
device           1095 daemons/fenced/fenced_commands.c     device->agent = agent;
device           1096 daemons/fenced/fenced_commands.c     device->namespace = crm_element_value_copy(dev, PCMK__XA_NAMESPACE);
device           1097 daemons/fenced/fenced_commands.c     device->params = xml2device_params(device->id, dev);
device           1099 daemons/fenced/fenced_commands.c     value = g_hash_table_lookup(device->params, PCMK_STONITH_HOST_LIST);
device           1101 daemons/fenced/fenced_commands.c         device->targets = stonith__parse_targets(value);
device           1104 daemons/fenced/fenced_commands.c     value = g_hash_table_lookup(device->params, PCMK_STONITH_HOST_MAP);
device           1105 daemons/fenced/fenced_commands.c     device->aliases = build_port_aliases(value, &(device->targets));
device           1107 daemons/fenced/fenced_commands.c     value = target_list_type(device);
device           1109 daemons/fenced/fenced_commands.c         && (device->targets != NULL)) {
device           1112 daemons/fenced/fenced_commands.c         g_list_free_full(device->targets, free);
device           1113 daemons/fenced/fenced_commands.c         device->targets = NULL;
device           1115 daemons/fenced/fenced_commands.c     switch (get_agent_metadata(device->agent, &device->agent_metadata)) {
device           1117 daemons/fenced/fenced_commands.c             if (device->agent_metadata) {
device           1118 daemons/fenced/fenced_commands.c                 read_action_metadata(device);
device           1119 daemons/fenced/fenced_commands.c                 stonith__device_parameter_flags(&(device->flags), device->id,
device           1120 daemons/fenced/fenced_commands.c                                                 device->agent_metadata);
device           1125 daemons/fenced/fenced_commands.c             if (device->timer == NULL) {
device           1126 daemons/fenced/fenced_commands.c                 device->timer = mainloop_timer_add("get_agent_metadata", 10 * 1000,
device           1127 daemons/fenced/fenced_commands.c                                            TRUE, get_agent_metadata_cb, device);
device           1129 daemons/fenced/fenced_commands.c             if (!mainloop_timer_running(device->timer)) {
device           1130 daemons/fenced/fenced_commands.c                 mainloop_timer_start(device->timer);
device           1138 daemons/fenced/fenced_commands.c     value = g_hash_table_lookup(device->params, "nodeid");
device           1140 daemons/fenced/fenced_commands.c         device->include_nodeid = is_nodeid_required(device->agent_metadata);
device           1145 daemons/fenced/fenced_commands.c         device->automatic_unfencing = TRUE;
device           1148 daemons/fenced/fenced_commands.c     if (is_action_required(PCMK_ACTION_ON, device)) {
device           1149 daemons/fenced/fenced_commands.c         crm_info("Fencing device '%s' requires unfencing", device->id);
device           1152 daemons/fenced/fenced_commands.c     if (device->on_target_actions != NULL) {
device           1154 daemons/fenced/fenced_commands.c                  "on target", device->id,
device           1155 daemons/fenced/fenced_commands.c                  (const char *) device->on_target_actions->str);
device           1158 daemons/fenced/fenced_commands.c     device->work = mainloop_add_trigger(G_PRIORITY_HIGH, stonith_device_dispatch, device);
device           1161 daemons/fenced/fenced_commands.c     return device;
device           1166 daemons/fenced/fenced_commands.c                           stonith_device_t * device,
device           1184 daemons/fenced/fenced_commands.c     cmd->device = pcmk__str_copy(device->id);
device           1192 daemons/fenced/fenced_commands.c     schedule_stonith_command(cmd, device);
device           1368 daemons/fenced/fenced_commands.c device_has_duplicate(const stonith_device_t *device)
device           1370 daemons/fenced/fenced_commands.c     stonith_device_t *dup = g_hash_table_lookup(device_list, device->id);
device           1373 daemons/fenced/fenced_commands.c         crm_trace("No match for %s", device->id);
device           1376 daemons/fenced/fenced_commands.c     } else if (!pcmk__str_eq(dup->agent, device->agent, pcmk__str_casei)) {
device           1377 daemons/fenced/fenced_commands.c         crm_trace("Different agent: %s != %s", dup->agent, device->agent);
device           1382 daemons/fenced/fenced_commands.c     if (device_params_diff(device->params, dup->params) ||
device           1383 daemons/fenced/fenced_commands.c         device_params_diff(dup->params, device->params)) {
device           1395 daemons/fenced/fenced_commands.c     stonith_device_t *device = build_device_from_xml(dev);
device           1399 daemons/fenced/fenced_commands.c     CRM_CHECK(device != NULL, return -ENOMEM);
device           1402 daemons/fenced/fenced_commands.c     if (pcmk__str_eq(device->id, STONITH_WATCHDOG_ID, pcmk__str_none) ||
device           1403 daemons/fenced/fenced_commands.c         pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT,
device           1410 daemons/fenced/fenced_commands.c         } else if (!pcmk__str_any_of(device->agent, STONITH_WATCHDOG_AGENT,
device           1414 daemons/fenced/fenced_commands.c                     device->agent?device->agent:"");
device           1417 daemons/fenced/fenced_commands.c         } else if (!pcmk__str_eq(device->id, STONITH_WATCHDOG_ID,
device           1421 daemons/fenced/fenced_commands.c                     device->id?device->id:"");
device           1425 daemons/fenced/fenced_commands.c             if (pcmk__str_eq(device->agent, STONITH_WATCHDOG_AGENT,
device           1431 daemons/fenced/fenced_commands.c                 stonith_watchdog_targets = device->targets;
device           1432 daemons/fenced/fenced_commands.c                 device->targets = NULL;
device           1435 daemons/fenced/fenced_commands.c                 g_list_free_full(device->targets, free);
device           1436 daemons/fenced/fenced_commands.c                 device->targets = stonith__parse_targets(stonith_our_uname);
device           1437 daemons/fenced/fenced_commands.c                 pcmk__insert_dup(device->params,
device           1445 daemons/fenced/fenced_commands.c             device->targets = NULL;
device           1446 daemons/fenced/fenced_commands.c             stonith_device_remove(device->id, from_cib);
device           1448 daemons/fenced/fenced_commands.c         free_device(device);
device           1452 daemons/fenced/fenced_commands.c     dup = device_has_duplicate(device);
device           1456 daemons/fenced/fenced_commands.c                   device->id, ndevices, pcmk__plural_s(ndevices));
device           1457 daemons/fenced/fenced_commands.c         free_device(device);
device           1458 daemons/fenced/fenced_commands.c         device = dup;
device           1459 daemons/fenced/fenced_commands.c         dup = g_hash_table_lookup(device_list, device->id);
device           1463 daemons/fenced/fenced_commands.c         stonith_device_t *old = g_hash_table_lookup(device_list, device->id);
device           1470 daemons/fenced/fenced_commands.c             crm_info("Overwriting existing entry for %s from CIB", device->id);
device           1471 daemons/fenced/fenced_commands.c             device->pending_ops = old->pending_ops;
device           1472 daemons/fenced/fenced_commands.c             device->api_registered = TRUE;
device           1474 daemons/fenced/fenced_commands.c             if (device->pending_ops) {
device           1475 daemons/fenced/fenced_commands.c                 mainloop_set_trigger(device->work);
device           1478 daemons/fenced/fenced_commands.c         g_hash_table_replace(device_list, device->id, device);
device           1482 daemons/fenced/fenced_commands.c                    device->id, ndevices, pcmk__plural_s(ndevices));
device           1486 daemons/fenced/fenced_commands.c         device->cib_registered = TRUE;
device           1488 daemons/fenced/fenced_commands.c         device->api_registered = TRUE;
device           1497 daemons/fenced/fenced_commands.c     stonith_device_t *device = g_hash_table_lookup(device_list, id);
device           1500 daemons/fenced/fenced_commands.c     if (!device) {
device           1508 daemons/fenced/fenced_commands.c         device->cib_registered = FALSE;
device           1510 daemons/fenced/fenced_commands.c         device->verified = FALSE;
device           1511 daemons/fenced/fenced_commands.c         device->api_registered = FALSE;
device           1514 daemons/fenced/fenced_commands.c     if (!device->cib_registered && !device->api_registered) {
device           1523 daemons/fenced/fenced_commands.c                   (device->cib_registered? " cib" : ""),
device           1524 daemons/fenced/fenced_commands.c                   (device->api_registered? " api" : ""));
device           1816 daemons/fenced/fenced_commands.c         const char *device = dIter->value;
device           1818 daemons/fenced/fenced_commands.c         crm_trace("Adding device '%s' for %s[%d]", device, tp->target, id);
device           1819 daemons/fenced/fenced_commands.c         tp->levels[id] = g_list_append(tp->levels[id], pcmk__str_copy(device));
device           1968 daemons/fenced/fenced_commands.c     stonith_device_t *device = NULL;
device           1999 daemons/fenced/fenced_commands.c     device = g_hash_table_lookup(device_list, id);
device           2000 daemons/fenced/fenced_commands.c     if (device == NULL) {
device           2007 daemons/fenced/fenced_commands.c     } else if (!device->api_registered
device           2024 daemons/fenced/fenced_commands.c     schedule_stonith_command(cmd, device);
device           2029 daemons/fenced/fenced_commands.c search_devices_record_result(struct device_search_s *search, const char *device, gboolean can_fence)
device           2032 daemons/fenced/fenced_commands.c     if (can_fence && device) {
device           2034 daemons/fenced/fenced_commands.c             stonith_device_t *dev = g_hash_table_lookup(device_list, device);
device           2040 daemons/fenced/fenced_commands.c                                         pcmk__str_copy(device));
device           2071 daemons/fenced/fenced_commands.c localhost_is_eligible(const stonith_device_t *device, const char *action,
device           2077 daemons/fenced/fenced_commands.c     if ((device != NULL) && (action != NULL)
device           2078 daemons/fenced/fenced_commands.c         && (device->on_target_actions != NULL)
device           2079 daemons/fenced/fenced_commands.c         && (strstr((const char*) device->on_target_actions->str,
device           2084 daemons/fenced/fenced_commands.c                       "host, not %s", action, device->id, target);
device           2108 daemons/fenced/fenced_commands.c localhost_is_eligible_with_remap(const stonith_device_t *device,
device           2113 daemons/fenced/fenced_commands.c     if (localhost_is_eligible(device, action, target, allow_self)) {
device           2125 daemons/fenced/fenced_commands.c         if (localhost_is_eligible(device, PCMK_ACTION_OFF, target, allow_self)
device           2126 daemons/fenced/fenced_commands.c             || localhost_is_eligible(device, PCMK_ACTION_ON, target, FALSE)) {
device           2314 daemons/fenced/fenced_commands.c                                const stonith_device_t *device,
device           2321 daemons/fenced/fenced_commands.c     CRM_CHECK(xml && action && device, return);
device           2324 daemons/fenced/fenced_commands.c     if (is_action_required(action, device)) {
device           2325 daemons/fenced/fenced_commands.c         crm_trace("Action '%s' is required using %s", action, device->id);
device           2330 daemons/fenced/fenced_commands.c     action_specific_timeout = get_action_timeout(device, action, 0);
device           2333 daemons/fenced/fenced_commands.c                   action, action_specific_timeout, device->id);
device           2338 daemons/fenced/fenced_commands.c     delay_max = get_action_delay_max(device, action);
device           2341 daemons/fenced/fenced_commands.c                   action, delay_max, device->id);
device           2345 daemons/fenced/fenced_commands.c     delay_base = get_action_delay_base(device, action, target);
device           2352 daemons/fenced/fenced_commands.c                   action, delay_max, device->id);
device           2355 daemons/fenced/fenced_commands.c                   action, delay_base, device->id);
device           2359 daemons/fenced/fenced_commands.c                   action, delay_base, delay_max, device->id);
device           2374 daemons/fenced/fenced_commands.c add_disallowed(xmlNode *xml, const char *action, const stonith_device_t *device,
device           2377 daemons/fenced/fenced_commands.c     if (!localhost_is_eligible(device, action, target, allow_self)) {
device           2379 daemons/fenced/fenced_commands.c                   action, device->id);
device           2396 daemons/fenced/fenced_commands.c                  const stonith_device_t *device, const char *target,
device           2402 daemons/fenced/fenced_commands.c     add_action_specific_attributes(child, action, device, target);
device           2403 daemons/fenced/fenced_commands.c     add_disallowed(child, action, device, target, allow_self);
device           2458 daemons/fenced/fenced_commands.c         stonith_device_t *device = g_hash_table_lookup(device_list, lpc->data);
device           2462 daemons/fenced/fenced_commands.c         if (!device) {
device           2471 daemons/fenced/fenced_commands.c         crm_xml_add(dev, PCMK_XA_ID, device->id);
device           2472 daemons/fenced/fenced_commands.c         crm_xml_add(dev, PCMK__XA_NAMESPACE, device->namespace);
device           2473 daemons/fenced/fenced_commands.c         crm_xml_add(dev, PCMK_XA_AGENT, device->agent);
device           2476 daemons/fenced/fenced_commands.c         crm_xml_add_int(dev, PCMK__XA_ST_MONITOR_VERIFIED, device->verified);
device           2478 daemons/fenced/fenced_commands.c         crm_xml_add_int(dev, PCMK__XA_ST_DEVICE_SUPPORT_FLAGS, device->flags);
device           2483 daemons/fenced/fenced_commands.c         if (!pcmk_is_set(device->flags, st_device_supports_reboot)
device           2487 daemons/fenced/fenced_commands.c                       device->id);
device           2492 daemons/fenced/fenced_commands.c         add_action_specific_attributes(dev, action, device, query->target);
device           2505 daemons/fenced/fenced_commands.c             add_disallowed(dev, action, device, query->target,
device           2508 daemons/fenced/fenced_commands.c             add_action_reply(dev, PCMK_ACTION_OFF, device, query->target,
device           2511 daemons/fenced/fenced_commands.c             add_action_reply(dev, PCMK_ACTION_ON, device, query->target, FALSE);
device           2518 daemons/fenced/fenced_commands.c             g_hash_table_foreach(device->params, hash2field, attrs);
device           2594 daemons/fenced/fenced_commands.c     if (cmd->device != NULL) {
device           2595 daemons/fenced/fenced_commands.c         pcmk__g_strcat(msg, "using ", cmd->device, " ", NULL);
device           2628 daemons/fenced/fenced_commands.c         char *prefix = crm_strdup_printf("%s[%d]", cmd->device, pid);
device           2694 daemons/fenced/fenced_commands.c         crm_xml_add(notify_data, PCMK__XA_ST_DEVICE_ID, cmd->device);
device           2707 daemons/fenced/fenced_commands.c     stonith_device_t *device = cmd_device(cmd);
device           2709 daemons/fenced/fenced_commands.c     if (device) {
device           2711 daemons/fenced/fenced_commands.c                   cmd->action, device->id);
device           2712 daemons/fenced/fenced_commands.c         device->pending_ops = g_list_remove(device->pending_ops, cmd);
device           2759 daemons/fenced/fenced_commands.c             !pcmk__str_eq(cmd->device, cmd_other->device, pcmk__str_casei)) {
device           2812 daemons/fenced/fenced_commands.c     stonith_device_t *device = NULL;
device           2817 daemons/fenced/fenced_commands.c     device = cmd_device(cmd);
device           2821 daemons/fenced/fenced_commands.c     if (device) {
device           2822 daemons/fenced/fenced_commands.c         if (!device->verified && pcmk__result_ok(result)
device           2827 daemons/fenced/fenced_commands.c             device->verified = TRUE;
device           2830 daemons/fenced/fenced_commands.c         mainloop_set_trigger(device->work);
device           2837 daemons/fenced/fenced_commands.c                && !is_action_required(cmd->action, device)) {
device           2876 daemons/fenced/fenced_commands.c     stonith_device_t *device = NULL;
device           2885 daemons/fenced/fenced_commands.c         device = g_hash_table_lookup(device_list, devices->data);
device           2888 daemons/fenced/fenced_commands.c     if (device == NULL) { // No device found
device           2902 daemons/fenced/fenced_commands.c         schedule_stonith_command(cmd, device);
device           2917 daemons/fenced/fenced_commands.c     stonith_device_t *device = NULL;
device           2934 daemons/fenced/fenced_commands.c         device = g_hash_table_lookup(device_list, device_id);
device           2935 daemons/fenced/fenced_commands.c         if (device == NULL) {
device           2941 daemons/fenced/fenced_commands.c         schedule_stonith_command(cmd, device);
device           3049 daemons/fenced/fenced_commands.c     crm_xml_add(reply, PCMK__XA_ST_DEVICE_ID, cmd->device);
device           3261 daemons/fenced/fenced_commands.c         const char *device = crm_element_value(dev, PCMK__XA_ST_DEVICE_ID);
device           3263 daemons/fenced/fenced_commands.c         if (pcmk__str_eq(device, "manual_ack", pcmk__str_casei)) {
device           3370 daemons/fenced/fenced_commands.c         const char *device = crm_element_value(dev, PCMK__XA_ST_DEVICE_ID);
device           3377 daemons/fenced/fenced_commands.c                        target, (device? device : "any device"));
device           3390 daemons/fenced/fenced_commands.c                        (device == NULL)? "(any)" : device);
device            184 daemons/fenced/fenced_remote.c                  const char *device, uint32_t support_action_only)
device            186 daemons/fenced/fenced_remote.c     device_properties_t *props = g_hash_table_lookup(peer->devices, device);
device            208 daemons/fenced/fenced_remote.c                  const char *device, gboolean verified_devices_only)
device            210 daemons/fenced/fenced_remote.c     device_properties_t *props = find_peer_device(op, peer, device,
device            218 daemons/fenced/fenced_remote.c               device, peer->host, count_peer_devices(op, peer, FALSE, st_device_supports_none));
device            800 daemons/fenced/fenced_remote.c add_required_device(remote_fencing_op_t *op, const char *device)
device            802 daemons/fenced/fenced_remote.c     GList *match  = g_list_find_custom(op->automatic_list, device,
device            807 daemons/fenced/fenced_remote.c                                             pcmk__str_copy(device));
device            819 daemons/fenced/fenced_remote.c remove_required_device(remote_fencing_op_t *op, const char *device)
device            821 daemons/fenced/fenced_remote.c     GList *match = g_list_find_custom(op->automatic_list, device,
device            840 daemons/fenced/fenced_remote.c         const char *device = lpc->data;
device            843 daemons/fenced/fenced_remote.c                                          pcmk__str_copy(device));
device           1378 daemons/fenced/fenced_remote.c is_watchdog_fencing(const remote_fencing_op_t *op, const char *device)
device           1382 daemons/fenced/fenced_remote.c             && pcmk__str_eq(device, STONITH_WATCHDOG_ID, pcmk__str_null_matches)
device           1388 daemons/fenced/fenced_remote.c find_best_peer(const char *device, remote_fencing_op_t * op, enum find_best_peer_options options)
device           1393 daemons/fenced/fenced_remote.c     if (!device && pcmk_is_set(op->call_options, st_opt_topology)) {
device           1412 daemons/fenced/fenced_remote.c             if (grab_peer_device(op, peer, device, verified_devices_only)) {
device           1431 daemons/fenced/fenced_remote.c     const char *device = NULL;
device           1437 daemons/fenced/fenced_remote.c             device = op->devices->data;
device           1439 daemons/fenced/fenced_remote.c                       op->action, op->target, device);
device           1446 daemons/fenced/fenced_remote.c         peer = find_best_peer(device, op, FIND_PEER_SKIP_TARGET|FIND_PEER_VERIFIED_ONLY);
device           1448 daemons/fenced/fenced_remote.c             crm_trace("Found verified peer %s for %s", peer->host, device?device:"<any>");
device           1458 daemons/fenced/fenced_remote.c         peer = find_best_peer(device, op, FIND_PEER_SKIP_TARGET);
device           1468 daemons/fenced/fenced_remote.c             peer = find_best_peer(device, op, FIND_PEER_TARGET_ONLY);
device           1485 daemons/fenced/fenced_remote.c     if (is_watchdog_fencing(op, device)) {
device           1491 daemons/fenced/fenced_remote.c                    op->action, op->target, (device? device : "any device"));
device           1498 daemons/fenced/fenced_remote.c                       const remote_fencing_op_t *op, const char *device)
device           1502 daemons/fenced/fenced_remote.c     if (!is_watchdog_fencing(op, device)) {
device           1514 daemons/fenced/fenced_remote.c                      op->action, specified_timeout, device? device : "watchdog",
device           1530 daemons/fenced/fenced_remote.c                    const peer_device_info_t *peer, const char *device,
device           1536 daemons/fenced/fenced_remote.c     timeout = valid_fencing_timeout(op->base_timeout, false, op, device);
device           1538 daemons/fenced/fenced_remote.c     if (!peer || !device) {
device           1542 daemons/fenced/fenced_remote.c     props = g_hash_table_lookup(peer->devices, device);
device           1549 daemons/fenced/fenced_remote.c                                         true, op, device);
device           1769 daemons/fenced/fenced_remote.c advance_topology_device_in_level(remote_fencing_op_t *op, const char *device,
device           1781 daemons/fenced/fenced_remote.c         remove_required_device(op, device);
device           1857 daemons/fenced/fenced_remote.c     const char *device = NULL;
device           1878 daemons/fenced/fenced_remote.c         device = op->devices->data;
device           1879 daemons/fenced/fenced_remote.c         if (pcmk__str_eq(fenced_device_reboot_action(device), PCMK_ACTION_OFF,
device           1883 daemons/fenced/fenced_remote.c                      op->target, device);
device           1884 daemons/fenced/fenced_remote.c             advance_topology_device_in_level(op, device, NULL);
device           1887 daemons/fenced/fenced_remote.c         if (!fenced_device_supports_on(device)) {
device           1889 daemons/fenced/fenced_remote.c                      "doesn't support 'on'", op->target, device);
device           1890 daemons/fenced/fenced_remote.c             advance_topology_device_in_level(op, device, NULL);
device           1920 daemons/fenced/fenced_remote.c         device = op->devices->data;
device           1925 daemons/fenced/fenced_remote.c         timeout = get_device_timeout(op, peer, device, false);
device           1952 daemons/fenced/fenced_remote.c         if (device) {
device           1954 daemons/fenced/fenced_remote.c                            get_device_timeout(op, peer, device, true);
device           1957 daemons/fenced/fenced_remote.c                        peer->host, op->action, op->target, device,
device           1959 daemons/fenced/fenced_remote.c             crm_xml_add(remote_op, PCMK__XA_ST_DEVICE_ID, device);
device           1976 daemons/fenced/fenced_remote.c         if (!is_watchdog_fencing(op, device)
device           2012 daemons/fenced/fenced_remote.c                  "after successful 'off'", device, op->target);
device           2013 daemons/fenced/fenced_remote.c         advance_topology_device_in_level(op, device, NULL);
device           2034 daemons/fenced/fenced_remote.c         if (is_watchdog_fencing(op, device)
device           2079 daemons/fenced/fenced_remote.c                  op->action, op->target, (device? " using " : ""),
device           2080 daemons/fenced/fenced_remote.c                  (device? device : ""), op->client_name, op->id);
device           2113 daemons/fenced/fenced_remote.c     GList *device = NULL;
device           2131 daemons/fenced/fenced_remote.c         for (device = tp->levels[i]; device; device = device->next) {
device           2139 daemons/fenced/fenced_remote.c                 match = find_peer_device(op, peer, device->data, st_device_supports_none);
device           2163 daemons/fenced/fenced_remote.c parse_action_specific(const xmlNode *xml, const char *peer, const char *device,
device           2172 daemons/fenced/fenced_remote.c                   peer, device, action, props->custom_action_timeout[phase]);
device           2179 daemons/fenced/fenced_remote.c                   peer, device, props->delay_max[phase], action);
device           2187 daemons/fenced/fenced_remote.c                   peer, device, props->delay_base[phase], action);
device           2197 daemons/fenced/fenced_remote.c                       peer, device, action);
device           2198 daemons/fenced/fenced_remote.c             add_required_device(op, device);
device           2208 daemons/fenced/fenced_remote.c                   peer, action, device);
device           2223 daemons/fenced/fenced_remote.c                       peer_device_info_t *peer, const char *device)
device           2232 daemons/fenced/fenced_remote.c     g_hash_table_insert(peer->devices, pcmk__str_copy(device), props);
device           2238 daemons/fenced/fenced_remote.c                   peer->host, device);
device           2248 daemons/fenced/fenced_remote.c                  "(assuming unfencing): %s", device, pcmk_rc_str(rc));
device           2252 daemons/fenced/fenced_remote.c     parse_action_specific(xml, peer->host, device, op_requested_action(op),
device           2261 daemons/fenced/fenced_remote.c             parse_action_specific(child, peer->host, device, PCMK_ACTION_OFF,
device           2266 daemons/fenced/fenced_remote.c             parse_action_specific(child, peer->host, device, PCMK_ACTION_ON,
device           2297 daemons/fenced/fenced_remote.c         const char *device = pcmk__xe_id(child);
device           2299 daemons/fenced/fenced_remote.c         if (device) {
device           2300 daemons/fenced/fenced_remote.c             add_device_properties(child, op, peer, device);
device           2434 daemons/fenced/fenced_remote.c     const char *device = NULL;
device           2449 daemons/fenced/fenced_remote.c     device = crm_element_value(dev, PCMK__XA_ST_DEVICE_ID);
device           2473 daemons/fenced/fenced_remote.c     if (op->devices && device && !pcmk__str_eq(op->devices->data, device, pcmk__str_casei)) {
device           2476 daemons/fenced/fenced_remote.c                 device, (const char *) op->devices->data, op->action, op->target);
device           2496 daemons/fenced/fenced_remote.c                 op->id, device, op->target);
device           2501 daemons/fenced/fenced_remote.c         const char *device = NULL;
device           2511 daemons/fenced/fenced_remote.c         device = crm_element_value(msg, PCMK__XA_ST_DEVICE_ID);
device           2519 daemons/fenced/fenced_remote.c                      device, pcmk_exec_status_str(op->result.execution_status),
device           2528 daemons/fenced/fenced_remote.c                        ((device == NULL)? "" : " using "),
device           2529 daemons/fenced/fenced_remote.c                        ((device == NULL)? "" : device),
device           2541 daemons/fenced/fenced_remote.c             advance_topology_device_in_level(op, device, msg);
device            157 include/crm/stonith-ng.h     char *device;
device           1451 lib/fencing/st_client.c             event->device = crm_element_value_copy(data, PCMK__XA_ST_DEVICE_ID);
device           1464 lib/fencing/st_client.c             event->device = crm_element_value_copy(data, PCMK__XA_ST_DEVICE_ID);
device           1484 lib/fencing/st_client.c     free(event->device);
device           2656 lib/fencing/st_client.c     const char *device = pcmk__s(event->device, "unknown");
device           2680 lib/fencing/st_client.c         return crm_strdup_printf("A fencing device (%s) was added", device);
device           2684 lib/fencing/st_client.c         return crm_strdup_printf("A fencing device (%s) was removed", device);
device           2689 lib/fencing/st_client.c                                  device);
device           2694 lib/fencing/st_client.c                                  device);
device            511 lib/fencing/st_output.c     const char *device = va_arg(args, const char *);
device            516 lib/fencing/st_output.c     if (device) {
device            517 lib/fencing/st_output.c         char *buf = crm_strdup_printf("Validation of %s on %s %s", agent, device,
device            537 lib/fencing/st_output.c     const char *device = va_arg(args, const char *);
device            542 lib/fencing/st_output.c     if (device) {
device            543 lib/fencing/st_output.c         pcmk__indented_printf(out, "Validation of %s on %s %s\n", agent, device,
device            559 lib/fencing/st_output.c     const char *device = va_arg(args, const char *);
device            570 lib/fencing/st_output.c     if (device != NULL) {
device            571 lib/fencing/st_output.c         crm_xml_add(node, PCMK_XA_DEVICE, device);
device            386 tools/stonith_admin.c     const char *device = NULL;
device            445 tools/stonith_admin.c         device = options.register_dev;
device            450 tools/stonith_admin.c         device = options.query;
device            455 tools/stonith_admin.c         device = options.unregister_dev;
device            460 tools/stonith_admin.c         device = options.targets;
device            572 tools/stonith_admin.c             rc = st->cmds->monitor(st, st_opts, device, options.timeout);
device            574 tools/stonith_admin.c                 rc = st->cmds->list(st, st_opts, device, NULL, options.timeout);
device            580 tools/stonith_admin.c             rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000);
device            588 tools/stonith_admin.c             rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent,
device            593 tools/stonith_admin.c                          device, options.agent, pcmk_rc_str(rc));
device            598 tools/stonith_admin.c             rc = st->cmds->remove_device(st, st_opts, device);
device            602 tools/stonith_admin.c                          device, pcmk_rc_str(rc));
device            658 tools/stonith_admin.c             device = options.devices ? options.devices->key : NULL;
device            659 tools/stonith_admin.c             rc = pcmk__fence_validate(out, st, options.agent, device, options.params,