resource1 367 lib/pengine/utils.c const resource_t *resource1 = (const resource_t *)a; resource1 380 lib/pengine/utils.c if (resource1->sort_index > resource2->sort_index) { resource1 384 lib/pengine/utils.c if (resource1->sort_index < resource2->sort_index) { resource1 394 lib/pengine/utils.c const resource_t *resource1 = (const resource_t *)a; resource1 407 lib/pengine/utils.c if (resource1->priority > resource2->priority) { resource1 411 lib/pengine/utils.c if (resource1->priority < resource2->priority) { resource1 1043 pengine/allocate.c resource_t *resource1 = (resource_t *) convert_const_pointer(a); resource1 1063 pengine/allocate.c r1_weight = resource1->priority; resource1 1082 pengine/allocate.c rsc_merge_weights(resource1, resource1->id, NULL, NULL, 1, resource1 1084 pengine/allocate.c dump_node_scores(LOG_TRACE, NULL, resource1->id, r1_nodes); resource1 1095 pengine/allocate.c if (resource1->running_on) { resource1 1096 pengine/allocate.c r1_node = g_list_nth_data(resource1->running_on, 0); resource1 1156 pengine/allocate.c resource1->id, r1_weight, r1_node ? r1_node->details->id : "n/a", resource1 36 pengine/clone.c const resource_t *resource1 = (const resource_t *)a; resource1 39 pengine/clone.c CRM_ASSERT(resource1 != NULL); resource1 42 pengine/clone.c return strcmp(resource1->id, resource2->id); resource1 87 pengine/clone.c const resource_t *resource1 = (const resource_t *)a; resource1 90 pengine/clone.c CRM_ASSERT(resource1 != NULL); resource1 101 pengine/clone.c if (resource1->running_on && resource2->running_on) { resource1 102 pengine/clone.c if (g_list_length(resource1->running_on) < g_list_length(resource2->running_on)) { resource1 103 pengine/clone.c crm_trace("%s < %s: running_on", resource1->id, resource2->id); resource1 106 pengine/clone.c } else if (g_list_length(resource1->running_on) > g_list_length(resource2->running_on)) { resource1 107 pengine/clone.c crm_trace("%s > %s: running_on", resource1->id, resource2->id); resource1 112 pengine/clone.c if (resource1->running_on) { resource1 113 pengine/clone.c node1 = resource1->running_on->data; resource1 120 pengine/clone.c node_t *match = pe_hash_table_lookup(resource1->allowed_nodes, node1->details->id); resource1 123 pengine/clone.c crm_trace("%s: current location is unavailable", resource1->id); resource1 141 pengine/clone.c crm_trace("%s < %s: availability of current location", resource1->id, resource2->id); resource1 144 pengine/clone.c crm_trace("%s > %s: availability of current location", resource1->id, resource2->id); resource1 148 pengine/clone.c if (resource1->priority < resource2->priority) { resource1 149 pengine/clone.c crm_trace("%s < %s: priority", resource1->id, resource2->id); resource1 152 pengine/clone.c } else if (resource1->priority > resource2->priority) { resource1 153 pengine/clone.c crm_trace("%s > %s: priority", resource1->id, resource2->id); resource1 158 pengine/clone.c crm_trace("%s == %s: not active", resource1->id, resource2->id); resource1 164 pengine/clone.c crm_trace("%s > %s: active", resource1->id, resource2->id); resource1 167 pengine/clone.c crm_trace("%s < %s: active", resource1->id, resource2->id); resource1 176 pengine/clone.c crm_trace("%s < %s: can", resource1->id, resource2->id); resource1 179 pengine/clone.c crm_trace("%s > %s: can", resource1->id, resource2->id); resource1 183 pengine/clone.c node1 = parent_node_instance(resource1, node1); resource1 186 pengine/clone.c crm_trace("%s < %s: not allowed", resource1->id, resource2->id); resource1 189 pengine/clone.c crm_trace("%s > %s: not allowed", resource1->id, resource2->id); resource1 194 pengine/clone.c crm_trace("%s == %s: not allowed", resource1->id, resource2->id); resource1 199 pengine/clone.c crm_trace("%s < %s: count", resource1->id, resource2->id); resource1 203 pengine/clone.c crm_trace("%s > %s: count", resource1->id, resource2->id); resource1 207 pengine/clone.c can1 = did_fail(resource1); resource1 211 pengine/clone.c crm_trace("%s > %s: failed", resource1->id, resource2->id); resource1 214 pengine/clone.c crm_trace("%s < %s: failed", resource1->id, resource2->id); resource1 230 pengine/clone.c n = node_copy(resource1->running_on->data); resource1 236 pengine/clone.c if(resource1->parent) { resource1 237 pengine/clone.c for (gIter = resource1->parent->rsc_cons; gIter; gIter = gIter->next) { resource1 240 pengine/clone.c crm_trace("Applying %s to %s", constraint->id, resource1->id); resource1 242 pengine/clone.c hash1 = native_merge_weights(constraint->rsc_rh, resource1->id, hash1, resource1 247 pengine/clone.c for (gIter = resource1->parent->rsc_cons_lhs; gIter; gIter = gIter->next) { resource1 250 pengine/clone.c crm_trace("Applying %s to %s", constraint->id, resource1->id); resource1 252 pengine/clone.c hash1 = native_merge_weights(constraint->rsc_lh, resource1->id, hash1, resource1 281 pengine/clone.c node1 = g_list_nth_data(resource1->running_on, 0); resource1 289 pengine/clone.c crm_trace("%s > %s: current score: %d %d", resource1->id, resource2->id, node1->weight, node2->weight); resource1 294 pengine/clone.c crm_trace("%s < %s: current score: %d %d", resource1->id, resource2->id, node1->weight, node2->weight); resource1 300 pengine/clone.c crm_trace("%s > %s: current score: %d %d", resource1->id, resource2->id, node1->weight, node2->weight); resource1 311 pengine/clone.c g_list_nth_data(resource1->running_on, 0)); resource1 324 pengine/clone.c crm_trace("%s < %s: colocated score NULL", resource1->id, resource2->id); resource1 329 pengine/clone.c crm_trace("%s > %s: colocated score NULL", resource1->id, resource2->id); resource1 335 pengine/clone.c crm_trace("%s < %s: colocated score", resource1->id, resource2->id); resource1 340 pengine/clone.c crm_trace("%s > %s: colocated score", resource1->id, resource2->id); resource1 358 pengine/clone.c rc = strcmp(resource1->id, resource2->id); resource1 359 pengine/clone.c crm_trace("%s %c %s: default", resource1->id, rc < 0 ? '<' : '>', resource2->id); resource1 238 pengine/master.c const resource_t *resource1 = (const resource_t *)a; resource1 241 pengine/master.c CRM_ASSERT(resource1 != NULL); resource1 244 pengine/master.c role1 = resource1->fns->state(resource1, TRUE); resource1 249 pengine/master.c crm_trace("%s %c %s (index)", resource1->id, rc < 0 ? '<' : '>', resource2->id); resource1 254 pengine/master.c crm_trace("%s %c %s (role)", resource1->id, '<', resource2->id); resource1 258 pengine/master.c crm_trace("%s %c %s (role)", resource1->id, '>', resource2->id);