Lines Matching refs:msg

788 nfs4_free_msg(nfs4_debug_msg_t *msg)  in nfs4_free_msg()  argument
792 if (msg->msg_type == RM_EVENT) in nfs4_free_msg()
793 free_event(&msg->rmsg_u.msg_event); in nfs4_free_msg()
795 free_fact(&msg->rmsg_u.msg_fact); in nfs4_free_msg()
797 if (msg->msg_srv) { in nfs4_free_msg()
798 len = strlen(msg->msg_srv) + 1; in nfs4_free_msg()
799 kmem_free(msg->msg_srv, len); in nfs4_free_msg()
802 if (msg->msg_mntpt) { in nfs4_free_msg()
803 len = strlen(msg->msg_mntpt) + 1; in nfs4_free_msg()
804 kmem_free(msg->msg_mntpt, len); in nfs4_free_msg()
808 kmem_free(msg, sizeof (*msg)); in nfs4_free_msg()
817 print_facts(nfs4_debug_msg_t *msg, mntinfo4_t *mi) in print_facts() argument
823 if (msg->rmsg_u.msg_event.re_type != RE_DEAD_FILE && in print_facts()
824 msg->rmsg_u.msg_event.re_type != RE_SIGLOST && in print_facts()
825 msg->rmsg_u.msg_event.re_type != RE_SIGLOST_NO_DUMP) in print_facts()
831 if (get_facts(msg, fp, &mount_pt, mi)) { in print_facts()
871 queue_print_event(nfs4_debug_msg_t *msg, mntinfo4_t *mi, int dump) in queue_print_event() argument
876 ep = &msg->rmsg_u.msg_event; in queue_print_event()
885 msg->msg_srv, msg->msg_mntpt, in queue_print_event()
898 msg->msg_srv, msg->msg_mntpt, msg->msg_srv, in queue_print_event()
899 ep->re_char1, (void *)ep->re_rp1, msg->msg_mntpt); in queue_print_event()
905 " for fh:", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
906 msg->msg_srv, (void *)ep->re_rp1, msg->msg_mntpt); in queue_print_event()
915 msg->msg_srv, msg->msg_mntpt, msg->msg_mntpt, in queue_print_event()
918 msg->msg_srv); in queue_print_event()
923 "recovery error on server %s(%s %s)", msg->msg_srv, in queue_print_event()
924 msg->msg_mntpt, ep->re_char1, (void *)ep->re_rp1, in queue_print_event()
925 msg->msg_srv, ep->re_char2 ? ep->re_char2 : "", in queue_print_event()
932 "rnode_pt2 %s (0x%p)", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
933 msg->msg_mntpt, (void *)ep->re_mi, msg->msg_srv, in queue_print_event()
941 msg->msg_srv, msg->msg_mntpt, ep->re_pid, ep->re_char1, in queue_print_event()
942 (void *)ep->re_rp1, msg->msg_srv, in queue_print_event()
948 "fhandle length (%d)", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
949 msg->msg_srv, ep->re_uint); in queue_print_event()
954 " for server %s", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
955 msg->msg_srv); in queue_print_event()
961 "failing over from %s to %s", msg->msg_srv, in queue_print_event()
962 msg->msg_mntpt, msg->msg_srv, ep->re_char1); in queue_print_event()
967 "original server %s", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
968 msg->msg_srv); in queue_print_event()
974 "the original file", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
975 ep->re_char1, (void *)ep->re_rp1, msg->msg_srv); in queue_print_event()
980 "dir %s (0x%p) for server %s", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
981 nfs4_op_to_str(ep->re_uint), msg->msg_mntpt, in queue_print_event()
983 (void *)ep->re_rp2, msg->msg_srv); in queue_print_event()
989 msg->msg_srv, msg->msg_mntpt, msg->msg_mntpt, in queue_print_event()
990 (void *)ep->re_mi, ep->re_uint, ep->re_pid, msg->msg_srv); in queue_print_event()
999 "(%d) on server %s.", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
1001 ep->re_uint, msg->msg_srv); in queue_print_event()
1007 "(%s) on server %s.", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
1009 nfs4_stat_to_str(ep->re_stat4), msg->msg_srv); in queue_print_event()
1015 "rnode_pt1 %s (0x%p), rnode_pt2 %s (0x%p)", msg->msg_srv, in queue_print_event()
1016 msg->msg_mntpt, msg->msg_mntpt, (void *)ep->re_mi, in queue_print_event()
1017 ep->re_uint, msg->msg_srv, ep->re_char1, (void *)ep->re_rp1, in queue_print_event()
1023 msg->msg_srv, msg->msg_mntpt, in queue_print_event()
1024 nfs4_recov_action_to_str(ep->re_uint), msg->msg_srv); in queue_print_event()
1029 msg->msg_srv, msg->msg_mntpt, ep->re_uint, msg->msg_srv); in queue_print_event()
1034 "on server %s", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
1036 msg->msg_srv); in queue_print_event()
1042 " rnode_pt2 %s (0x%p)", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
1043 ep->re_uint, msg->msg_srv, ep->re_char1, (void *)ep->re_rp1, in queue_print_event()
1050 "dir %s (0x%p)", msg->msg_srv, msg->msg_mntpt, in queue_print_event()
1051 ep->re_uint, msg->msg_mntpt, msg->msg_srv, ep->re_pid, in queue_print_event()
1059 "being referred from %s to %s", msg->msg_srv, in queue_print_event()
1060 msg->msg_mntpt, msg->msg_srv, ep->re_char1); in queue_print_event()
1065 msg->msg_srv, msg->msg_mntpt, msg->msg_srv); in queue_print_event()
1073 print_facts(msg, mi); in queue_print_event()
1080 msg->msg_status = NFS4_MS_NO_DUMP; in queue_print_event()
1087 queue_print_fact(nfs4_debug_msg_t *msg, int dump) in queue_print_fact() argument
1092 fp = &msg->rmsg_u.msg_fact; in queue_print_fact()
1099 "Please check configuration", msg->msg_srv, msg->msg_mntpt, in queue_print_fact()
1100 msg->msg_srv); in queue_print_fact()
1107 msg->msg_srv, msg->msg_mntpt, in queue_print_fact()
1117 msg->msg_srv, msg->msg_mntpt, in queue_print_fact()
1129 msg->msg_srv, msg->msg_mntpt); in queue_print_fact()
1134 msg->msg_srv, msg->msg_mntpt, msg->msg_srv); in queue_print_fact()
1138 "NFS server %s ok", msg->msg_srv, msg->msg_mntpt, in queue_print_fact()
1139 msg->msg_srv); in queue_print_fact()
1143 "NFS servers %s not responding; still trying", msg->msg_srv, in queue_print_fact()
1144 msg->msg_mntpt, msg->msg_srv); in queue_print_fact()
1148 "NFS servers %s ok", msg->msg_srv, msg->msg_mntpt, in queue_print_fact()
1149 msg->msg_srv); in queue_print_fact()
1155 msg->msg_srv, msg->msg_mntpt, nfs4_op_to_str(fp->rf_op), in queue_print_fact()
1162 msg->msg_srv, msg->msg_mntpt, msg->msg_srv); in queue_print_fact()
1175 msg->msg_status = NFS4_MS_NO_DUMP; in queue_print_fact()
1244 update_recov_kstats(nfs4_debug_msg_t *msg, mntinfo4_t *mi) in update_recov_kstats() argument
1253 if (msg->msg_type == RM_EVENT) { in update_recov_kstats()
1254 switch (msg->rmsg_u.msg_event.re_type) { in update_recov_kstats()
1295 } else if (msg->msg_type == RM_FACT) { in update_recov_kstats()
1296 switch (msg->rmsg_u.msg_fact.rf_type) { in update_recov_kstats()
1313 dump_queue(mntinfo4_t *mi, nfs4_debug_msg_t *msg) in dump_queue() argument
1320 update_recov_kstats(msg, mi); in dump_queue()
1326 if (!id_to_dump_queue(msg->rmsg_u.msg_event.re_type)) { in dump_queue()
1327 if (id_to_dump_solo_event(msg->rmsg_u.msg_event.re_type)) in dump_queue()
1328 queue_print_event(msg, mi, 0); in dump_queue()
1359 nfs4_debug_msg_t *msg; in nfs4_queue_event() local
1375 msg = kmem_zalloc(sizeof (*msg), KM_SLEEP); in nfs4_queue_event()
1376 msg->msg_type = RM_EVENT; in nfs4_queue_event()
1377 msg->msg_status = NFS4_MS_DUMP; in nfs4_queue_event()
1378 ep = &msg->rmsg_u.msg_event; in nfs4_queue_event()
1380 gethrestime(&msg->msg_time); in nfs4_queue_event()
1383 msg->msg_srv = strdup(cur_srv); in nfs4_queue_event()
1385 msg->msg_mntpt = strdup(refstr_value(mntpt)); in nfs4_queue_event()
1394 if (events_same(list_tail(&mi->mi_msg_list), msg, mi)) { in nfs4_queue_event()
1396 nfs4_free_msg(msg); in nfs4_queue_event()
1401 list_insert_tail(&mi->mi_msg_list, msg); in nfs4_queue_event()
1403 dump_queue(mi, msg); in nfs4_queue_event()
1427 nfs4_debug_msg_t *msg; in nfs4_queue_fact() local
1436 msg = kmem_zalloc(sizeof (*msg), KM_SLEEP); in nfs4_queue_fact()
1437 msg->msg_type = RM_FACT; in nfs4_queue_fact()
1438 msg->msg_status = NFS4_MS_DUMP; in nfs4_queue_fact()
1439 gethrestime(&msg->msg_time); in nfs4_queue_fact()
1446 msg->msg_srv = strdup(cur_srv); in nfs4_queue_fact()
1448 msg->msg_mntpt = strdup(refstr_value(mntpt)); in nfs4_queue_fact()
1451 fp = &msg->rmsg_u.msg_fact; in nfs4_queue_fact()
1456 update_recov_kstats(msg, mi); in nfs4_queue_fact()
1461 if (facts_same(list_tail(&mi->mi_msg_list), msg, mi)) { in nfs4_queue_fact()
1463 nfs4_free_msg(msg); in nfs4_queue_fact()
1468 list_insert_tail(&mi->mi_msg_list, msg); in nfs4_queue_fact()
1470 if (id_to_dump_solo_fact(msg->rmsg_u.msg_fact.rf_type)) in nfs4_queue_fact()
1471 queue_print_fact(msg, 0); in nfs4_queue_fact()