tp 1240 daemons/fenced/fenced_commands.c count_active_levels(stonith_topology_t * tp) tp 1246 daemons/fenced/fenced_commands.c if (tp->levels[lpc] != NULL) { tp 1256 daemons/fenced/fenced_commands.c stonith_topology_t *tp = data; tp 1261 daemons/fenced/fenced_commands.c if (tp->levels[lpc] != NULL) { tp 1262 daemons/fenced/fenced_commands.c g_list_free_full(tp->levels[lpc], free); tp 1265 daemons/fenced/fenced_commands.c free(tp->target); tp 1266 daemons/fenced/fenced_commands.c free(tp->target_value); tp 1267 daemons/fenced/fenced_commands.c free(tp->target_pattern); tp 1268 daemons/fenced/fenced_commands.c free(tp->target_attribute); tp 1269 daemons/fenced/fenced_commands.c free(tp); tp 1389 daemons/fenced/fenced_commands.c stonith_topology_t *tp; tp 1421 daemons/fenced/fenced_commands.c tp = g_hash_table_lookup(topology, target); tp 1422 daemons/fenced/fenced_commands.c if (tp == NULL) { tp 1423 daemons/fenced/fenced_commands.c tp = calloc(1, sizeof(stonith_topology_t)); tp 1424 daemons/fenced/fenced_commands.c tp->kind = mode; tp 1425 daemons/fenced/fenced_commands.c tp->target = target; tp 1426 daemons/fenced/fenced_commands.c tp->target_value = crm_element_value_copy(level, XML_ATTR_STONITH_TARGET_VALUE); tp 1427 daemons/fenced/fenced_commands.c tp->target_pattern = crm_element_value_copy(level, XML_ATTR_STONITH_TARGET_PATTERN); tp 1428 daemons/fenced/fenced_commands.c tp->target_attribute = crm_element_value_copy(level, XML_ATTR_STONITH_TARGET_ATTRIBUTE); tp 1430 daemons/fenced/fenced_commands.c g_hash_table_replace(topology, tp->target, tp); tp 1437 daemons/fenced/fenced_commands.c if (tp->levels[id] != NULL) { tp 1439 daemons/fenced/fenced_commands.c tp->target, id); tp 1446 daemons/fenced/fenced_commands.c crm_trace("Adding device '%s' for %s[%d]", device, tp->target, id); tp 1447 daemons/fenced/fenced_commands.c tp->levels[id] = g_list_append(tp->levels[id], strdup(device)); tp 1452 daemons/fenced/fenced_commands.c tp->target, count_active_levels(tp)); tp 1460 daemons/fenced/fenced_commands.c stonith_topology_t *tp; tp 1480 daemons/fenced/fenced_commands.c tp = g_hash_table_lookup(topology, target); tp 1481 daemons/fenced/fenced_commands.c if (tp == NULL) { tp 1489 daemons/fenced/fenced_commands.c } else if (id > 0 && tp->levels[id] != NULL) { tp 1490 daemons/fenced/fenced_commands.c g_list_free_full(tp->levels[id], free); tp 1491 daemons/fenced/fenced_commands.c tp->levels[id] = NULL; tp 1494 daemons/fenced/fenced_commands.c id, target, count_active_levels(tp)); tp 663 daemons/fenced/fenced_remote.c topology_is_empty(stonith_topology_t *tp) tp 667 daemons/fenced/fenced_remote.c if (tp == NULL) { tp 672 daemons/fenced/fenced_remote.c if (tp->levels[i] != NULL) { tp 741 daemons/fenced/fenced_remote.c topology_matches(const stonith_topology_t *tp, const char *node) tp 745 daemons/fenced/fenced_remote.c CRM_CHECK(node && tp && tp->target, return FALSE); tp 746 daemons/fenced/fenced_remote.c switch(tp->kind) { tp 754 daemons/fenced/fenced_remote.c if (node_has_attr(node, tp->target_attribute, tp->target_value)) { tp 755 daemons/fenced/fenced_remote.c crm_notice("Matched %s with %s by attribute", node, tp->target); tp 764 daemons/fenced/fenced_remote.c if (regcomp(&r_patt, tp->target_pattern, REG_EXTENDED|REG_NOSUB)) { tp 765 daemons/fenced/fenced_remote.c crm_info("Bad regex '%s' for fencing level", tp->target); tp 771 daemons/fenced/fenced_remote.c crm_notice("Matched %s with %s by name", node, tp->target); tp 777 daemons/fenced/fenced_remote.c crm_trace("Testing %s against %s", node, tp->target); tp 778 daemons/fenced/fenced_remote.c return pcmk__str_eq(tp->target, node, pcmk__str_casei); tp 780 daemons/fenced/fenced_remote.c crm_trace("No match for %s with %s", node, tp->target); tp 788 daemons/fenced/fenced_remote.c stonith_topology_t *tp = g_hash_table_lookup(topology, host); tp 790 daemons/fenced/fenced_remote.c if(tp != NULL) { tp 791 daemons/fenced/fenced_remote.c crm_trace("Found %s for %s in %d entries", tp->target, host, g_hash_table_size(topology)); tp 792 daemons/fenced/fenced_remote.c return tp; tp 796 daemons/fenced/fenced_remote.c while (g_hash_table_iter_next(&tIter, NULL, (gpointer *) & tp)) { tp 797 daemons/fenced/fenced_remote.c if (topology_matches(tp, host)) { tp 798 daemons/fenced/fenced_remote.c crm_trace("Found %s for %s in %d entries", tp->target, host, g_hash_table_size(topology)); tp 799 daemons/fenced/fenced_remote.c return tp; tp 821 daemons/fenced/fenced_remote.c stonith_topology_t *tp = NULL; tp 824 daemons/fenced/fenced_remote.c tp = find_topology_for_host(op->target); tp 826 daemons/fenced/fenced_remote.c if (topology_is_empty(tp)) { tp 830 daemons/fenced/fenced_remote.c CRM_ASSERT(tp->levels != NULL); tp 840 daemons/fenced/fenced_remote.c } while (op->level < ST_LEVEL_MAX && tp->levels[op->level] == NULL); tp 845 daemons/fenced/fenced_remote.c op->level, op->target, g_list_length(tp->levels[op->level]), tp 847 daemons/fenced/fenced_remote.c set_op_device_list(op, tp->levels[op->level]); tp 1348 daemons/fenced/fenced_remote.c stonith_topology_t *tp = find_topology_for_host(op->target); tp 1350 daemons/fenced/fenced_remote.c if (pcmk_is_set(op->call_options, st_opt_topology) && tp) { tp 1363 daemons/fenced/fenced_remote.c if (!tp->levels[i]) { tp 1366 daemons/fenced/fenced_remote.c for (device_list = tp->levels[i]; device_list; device_list = device_list->next) { tp 1690 daemons/fenced/fenced_remote.c stonith_topology_t *tp = NULL; tp 1694 daemons/fenced/fenced_remote.c tp = find_topology_for_host(op->target); tp 1695 daemons/fenced/fenced_remote.c if (!tp) { tp 1705 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))