Home
last modified time | relevance | path

Searched refs:hr_role (Results 1 – 9 of 9) sorted by relevance

/freebsd-12-stable/sbin/hastd/
Dhastd.c111 PJDLOG_VERIFY(res->hr_role == HAST_ROLE_SECONDARY || in descriptors_cleanup()
188 role2str(res->hr_role)); in descriptors_assert()
241 } else if (res->hr_role == HAST_ROLE_PRIMARY && in descriptors_assert()
255 } else if (res->hr_role == HAST_ROLE_SECONDARY && in descriptors_assert()
264 } else if (res->hr_role == HAST_ROLE_SECONDARY && in descriptors_assert()
278 } else if (res->hr_role == HAST_ROLE_SECONDARY && in descriptors_assert()
304 role2str(res->hr_role)); in descriptors_assert()
348 role2str(res->hr_role)); in child_exit()
351 if (res->hr_role == HAST_ROLE_PRIMARY) { in child_exit()
363 res->hr_role = HAST_ROLE_INIT; in child_exit()
[all …]
Dmetadata.c134 if (res->hr_role != HAST_ROLE_PRIMARY) { in metadata_read()
139 if (res->hr_role != HAST_ROLE_SECONDARY) { in metadata_read()
196 if (res->hr_role == HAST_ROLE_PRIMARY || in metadata_write()
197 res->hr_role == HAST_ROLE_INIT) { in metadata_write()
201 PJDLOG_ASSERT(res->hr_role == HAST_ROLE_SECONDARY); in metadata_write()
205 nv_add_string(nv, role2str(res->hr_role), "prevrole"); in metadata_write()
210 res->hr_previous_role = res->hr_role; in metadata_write()
Dcontrol.c101 nv_add_string(nvout, role2str(res->hr_role), "role%u", no); in control_set_role_common()
104 if (role == res->hr_role) in control_set_role_common()
107 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in control_set_role_common()
111 oldrole = res->hr_role; in control_set_role_common()
112 res->hr_role = role; in control_set_role_common()
113 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in control_set_role_common()
141 role2str(res->hr_role), NULL); in control_set_role_common()
285 nv_add_string(nvout, role2str(res->hr_role), "role%u", no); in control_status()
288 switch (res->hr_role) { in control_status()
466 if (res->hr_role == HAST_ROLE_PRIMARY) { in ctrl_thread()
[all …]
Dsubr.c191 res->hr_name, role2str(res->hr_role)); in drop_privs()
242 PJDLOG_ASSERT(res->hr_role == HAST_ROLE_PRIMARY || in drop_privs()
243 res->hr_role == HAST_ROLE_SECONDARY); in drop_privs()
257 if (res->hr_role == HAST_ROLE_PRIMARY) { in drop_privs()
Devent.c138 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in event_recv()
Dhast.h219 int hr_role; member
Dsecondary.c473 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in hastd_secondary()
474 setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role)); in hastd_secondary()
Dparse.y538 curres->hr_role = HAST_ROLE_INIT;
Dprimary.c1036 pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); in hastd_primary()
1037 setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role)); in hastd_primary()
2224 PJDLOG_ASSERT(res->hr_role == HAST_ROLE_PRIMARY); in primary_config_reload()