new_con 1353 lib/pacemaker/pcmk_sched_constraints.c pcmk__colocation_t *new_con = NULL; new_con 1365 lib/pacemaker/pcmk_sched_constraints.c new_con = calloc(1, sizeof(pcmk__colocation_t)); new_con 1366 lib/pacemaker/pcmk_sched_constraints.c if (new_con == NULL) { new_con 1378 lib/pacemaker/pcmk_sched_constraints.c new_con->id = id; new_con 1379 lib/pacemaker/pcmk_sched_constraints.c new_con->rsc_lh = rsc_lh; new_con 1380 lib/pacemaker/pcmk_sched_constraints.c new_con->rsc_rh = rsc_rh; new_con 1381 lib/pacemaker/pcmk_sched_constraints.c new_con->score = score; new_con 1382 lib/pacemaker/pcmk_sched_constraints.c new_con->role_lh = text2role(state_lh); new_con 1383 lib/pacemaker/pcmk_sched_constraints.c new_con->role_rh = text2role(state_rh); new_con 1384 lib/pacemaker/pcmk_sched_constraints.c new_con->node_attribute = node_attr; new_con 1385 lib/pacemaker/pcmk_sched_constraints.c new_con->influence = influence; new_con 1393 lib/pacemaker/pcmk_sched_constraints.c rsc_lh->rsc_cons = g_list_insert_sorted(rsc_lh->rsc_cons, new_con, sort_cons_priority_rh); new_con 1396 lib/pacemaker/pcmk_sched_constraints.c g_list_insert_sorted(rsc_rh->rsc_cons_lhs, new_con, sort_cons_priority_lh); new_con 1398 lib/pacemaker/pcmk_sched_constraints.c data_set->colocation_constraints = g_list_append(data_set->colocation_constraints, new_con); new_con 1401 lib/pacemaker/pcmk_sched_constraints.c anti_colocation_order(rsc_lh, new_con->role_lh, rsc_rh, new_con->role_rh, data_set); new_con 1402 lib/pacemaker/pcmk_sched_constraints.c anti_colocation_order(rsc_rh, new_con->role_rh, rsc_lh, new_con->role_lh, data_set); new_con 21 lib/pacemaker/pcmk_sched_utils.c pe__location_t *new_con = NULL; new_con 31 lib/pacemaker/pcmk_sched_utils.c new_con = calloc(1, sizeof(pe__location_t)); new_con 32 lib/pacemaker/pcmk_sched_utils.c if (new_con != NULL) { new_con 33 lib/pacemaker/pcmk_sched_utils.c new_con->id = strdup(id); new_con 34 lib/pacemaker/pcmk_sched_utils.c new_con->rsc_lh = rsc; new_con 35 lib/pacemaker/pcmk_sched_utils.c new_con->node_list_rh = NULL; new_con 36 lib/pacemaker/pcmk_sched_utils.c new_con->role_filter = RSC_ROLE_UNKNOWN; new_con 40 lib/pacemaker/pcmk_sched_utils.c new_con->discover_mode = pe_discover_always; new_con 42 lib/pacemaker/pcmk_sched_utils.c new_con->discover_mode = pe_discover_never; new_con 44 lib/pacemaker/pcmk_sched_utils.c new_con->discover_mode = pe_discover_exclusive; new_con 54 lib/pacemaker/pcmk_sched_utils.c new_con->node_list_rh = g_list_prepend(NULL, copy); new_con 57 lib/pacemaker/pcmk_sched_utils.c data_set->placement_constraints = g_list_prepend(data_set->placement_constraints, new_con); new_con 58 lib/pacemaker/pcmk_sched_utils.c rsc->rsc_location = g_list_prepend(rsc->rsc_location, new_con); new_con 61 lib/pacemaker/pcmk_sched_utils.c return new_con;