Searched refs:hr_role (Results 1 - 9 of 9) sorted by relevance
/freebsd-10.3-release/sbin/hastd/ |
H A D | metadata.c | 132 if (res->hr_role != HAST_ROLE_PRIMARY) { 137 if (res->hr_role != HAST_ROLE_SECONDARY) { 194 if (res->hr_role == HAST_ROLE_PRIMARY || 195 res->hr_role == HAST_ROLE_INIT) { 198 } else /* if (res->hr_role == HAST_ROLE_SECONDARY) */ { 199 PJDLOG_ASSERT(res->hr_role == HAST_ROLE_SECONDARY); 203 nv_add_string(nv, role2str(res->hr_role), "prevrole"); 208 res->hr_previous_role = res->hr_role;
|
H A D | hastd.c | 109 PJDLOG_VERIFY(res->hr_role == HAST_ROLE_SECONDARY || 186 role2str(res->hr_role)); 239 } else if (res->hr_role == HAST_ROLE_PRIMARY && 253 } else if (res->hr_role == HAST_ROLE_SECONDARY && 262 } else if (res->hr_role == HAST_ROLE_SECONDARY && 276 } else if (res->hr_role == HAST_ROLE_SECONDARY && 302 role2str(res->hr_role)); 346 role2str(res->hr_role)); 349 if (res->hr_role == HAST_ROLE_PRIMARY) { 361 res->hr_role [all...] |
H A D | control.c | 99 nv_add_string(nvout, role2str(res->hr_role), "role%u", no); 102 if (role == res->hr_role) 105 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); 109 oldrole = res->hr_role; 110 res->hr_role = role; 111 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); 139 role2str(res->hr_role), NULL); 283 nv_add_string(nvout, role2str(res->hr_role), "role%u", no); 286 switch (res->hr_role) { 464 if (res->hr_role [all...] |
H A D | subr.c | 189 res->hr_name, role2str(res->hr_role)); 240 PJDLOG_ASSERT(res->hr_role == HAST_ROLE_PRIMARY || 241 res->hr_role == HAST_ROLE_SECONDARY); 255 if (res->hr_role == HAST_ROLE_PRIMARY) {
|
H A D | event.c | 136 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
|
H A D | hast.h | 217 int hr_role; member in struct:hast_resource
|
H A D | secondary.c | 471 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); 472 setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role));
|
H A D | parse.y | 536 curres->hr_role = HAST_ROLE_INIT;
|
H A D | primary.c | 1035 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); 1036 setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role)); 2223 PJDLOG_ASSERT(res->hr_role == HAST_ROLE_PRIMARY);
|
Completed in 56 milliseconds