tp 1287 daemons/fenced/fenced_commands.c count_active_levels(stonith_topology_t * tp) tp 1293 daemons/fenced/fenced_commands.c if (tp->levels[lpc] != NULL) { tp 1303 daemons/fenced/fenced_commands.c stonith_topology_t *tp = data; tp 1308 daemons/fenced/fenced_commands.c if (tp->levels[lpc] != NULL) { tp 1309 daemons/fenced/fenced_commands.c g_list_free_full(tp->levels[lpc], free); tp 1312 daemons/fenced/fenced_commands.c free(tp->target); tp 1313 daemons/fenced/fenced_commands.c free(tp->target_value); tp 1314 daemons/fenced/fenced_commands.c free(tp->target_pattern); tp 1315 daemons/fenced/fenced_commands.c free(tp->target_attribute); tp 1316 daemons/fenced/fenced_commands.c free(tp); tp 1435 daemons/fenced/fenced_commands.c stonith_topology_t *tp; tp 1467 daemons/fenced/fenced_commands.c tp = g_hash_table_lookup(topology, target); tp 1468 daemons/fenced/fenced_commands.c if (tp == NULL) { tp 1469 daemons/fenced/fenced_commands.c tp = calloc(1, sizeof(stonith_topology_t)); tp 1470 daemons/fenced/fenced_commands.c tp->kind = mode; tp 1471 daemons/fenced/fenced_commands.c tp->target = target; tp 1472 daemons/fenced/fenced_commands.c tp->target_value = crm_element_value_copy(level, XML_ATTR_STONITH_TARGET_VALUE); tp 1473 daemons/fenced/fenced_commands.c tp->target_pattern = crm_element_value_copy(level, XML_ATTR_STONITH_TARGET_PATTERN); tp 1474 daemons/fenced/fenced_commands.c tp->target_attribute = crm_element_value_copy(level, XML_ATTR_STONITH_TARGET_ATTRIBUTE); tp 1476 daemons/fenced/fenced_commands.c g_hash_table_replace(topology, tp->target, tp); tp 1483 daemons/fenced/fenced_commands.c if (tp->levels[id] != NULL) { tp 1485 daemons/fenced/fenced_commands.c tp->target, id); tp 1492 daemons/fenced/fenced_commands.c crm_trace("Adding device '%s' for %s[%d]", device, tp->target, id); tp 1493 daemons/fenced/fenced_commands.c tp->levels[id] = g_list_append(tp->levels[id], strdup(device)); tp 1498 daemons/fenced/fenced_commands.c int nlevels = count_active_levels(tp); tp 1501 daemons/fenced/fenced_commands.c tp->target, nlevels, pcmk__plural_s(nlevels)); tp 1510 daemons/fenced/fenced_commands.c stonith_topology_t *tp; tp 1530 daemons/fenced/fenced_commands.c tp = g_hash_table_lookup(topology, target); tp 1531 daemons/fenced/fenced_commands.c if (tp == NULL) { tp 1545 daemons/fenced/fenced_commands.c } else if (id > 0 && tp->levels[id] != NULL) { tp 1548 daemons/fenced/fenced_commands.c g_list_free_full(tp->levels[id], free); tp 1549 daemons/fenced/fenced_commands.c tp->levels[id] = NULL; tp 1551 daemons/fenced/fenced_commands.c nlevels = count_active_levels(tp); tp 666 daemons/fenced/fenced_remote.c topology_is_empty(stonith_topology_t *tp) tp 670 daemons/fenced/fenced_remote.c if (tp == NULL) { tp 675 daemons/fenced/fenced_remote.c if (tp->levels[i] != NULL) { tp 744 daemons/fenced/fenced_remote.c topology_matches(const stonith_topology_t *tp, const char *node) tp 748 daemons/fenced/fenced_remote.c CRM_CHECK(node && tp && tp->target, return FALSE); tp 749 daemons/fenced/fenced_remote.c switch(tp->kind) { tp 757 daemons/fenced/fenced_remote.c if (node_has_attr(node, tp->target_attribute, tp->target_value)) { tp 758 daemons/fenced/fenced_remote.c crm_notice("Matched %s with %s by attribute", node, tp->target); tp 767 daemons/fenced/fenced_remote.c if (regcomp(&r_patt, tp->target_pattern, REG_EXTENDED|REG_NOSUB)) { tp 768 daemons/fenced/fenced_remote.c crm_info("Bad regex '%s' for fencing level", tp->target); tp 774 daemons/fenced/fenced_remote.c crm_notice("Matched %s with %s by name", node, tp->target); tp 780 daemons/fenced/fenced_remote.c crm_trace("Testing %s against %s", node, tp->target); tp 781 daemons/fenced/fenced_remote.c return pcmk__str_eq(tp->target, node, pcmk__str_casei); tp 783 daemons/fenced/fenced_remote.c crm_trace("No match for %s with %s", node, tp->target); tp 791 daemons/fenced/fenced_remote.c stonith_topology_t *tp = g_hash_table_lookup(topology, host); tp 793 daemons/fenced/fenced_remote.c if(tp != NULL) { tp 794 daemons/fenced/fenced_remote.c crm_trace("Found %s for %s in %d entries", tp->target, host, g_hash_table_size(topology)); tp 795 daemons/fenced/fenced_remote.c return tp; tp 799 daemons/fenced/fenced_remote.c while (g_hash_table_iter_next(&tIter, NULL, (gpointer *) & tp)) { tp 800 daemons/fenced/fenced_remote.c if (topology_matches(tp, host)) { tp 801 daemons/fenced/fenced_remote.c crm_trace("Found %s for %s in %d entries", tp->target, host, g_hash_table_size(topology)); tp 802 daemons/fenced/fenced_remote.c return tp; tp 824 daemons/fenced/fenced_remote.c stonith_topology_t *tp = NULL; tp 827 daemons/fenced/fenced_remote.c tp = find_topology_for_host(op->target); tp 829 daemons/fenced/fenced_remote.c if (topology_is_empty(tp)) { tp 833 daemons/fenced/fenced_remote.c CRM_ASSERT(tp->levels != NULL); tp 843 daemons/fenced/fenced_remote.c } while (op->level < ST_LEVEL_MAX && tp->levels[op->level] == NULL); tp 848 daemons/fenced/fenced_remote.c op->level, op->target, g_list_length(tp->levels[op->level]), tp 850 daemons/fenced/fenced_remote.c set_op_device_list(op, tp->levels[op->level]); tp 1373 daemons/fenced/fenced_remote.c stonith_topology_t *tp = find_topology_for_host(op->target); tp 1375 daemons/fenced/fenced_remote.c if (pcmk_is_set(op->call_options, st_opt_topology) && tp) { tp 1388 daemons/fenced/fenced_remote.c if (!tp->levels[i]) { tp 1391 daemons/fenced/fenced_remote.c for (device_list = tp->levels[i]; device_list; device_list = device_list->next) { tp 1715 daemons/fenced/fenced_remote.c stonith_topology_t *tp = NULL; tp 1719 daemons/fenced/fenced_remote.c tp = find_topology_for_host(op->target); tp 1720 daemons/fenced/fenced_remote.c if (!tp) { tp 1730 daemons/fenced/fenced_remote.c for (device = tp->levels[i]; device; device = device->next) { tp 38 libltdl/libltdl/lt__alloc.h #define MALLOC(tp, n) (tp*) lt__malloc((n) * sizeof(tp)) tp 39 libltdl/libltdl/lt__alloc.h #define REALLOC(tp, mem, n) (tp*) lt__realloc((mem), (n) * sizeof(tp))