Lines Matching refs:pte
155 struct transentry *pte; in create_te() local
157 if ((pte = (struct transentry *)calloc(1, sizeof (*pte))) == NULL) { in create_te()
162 pte->next = pte->prev = NULL; in create_te()
164 return (pte); in create_te()
172 struct transentry *pte; in insert_te() local
180 for (pte = te_list->next; pte != te_list; pte = pte->next) { in insert_te()
182 if (strcmp(pte->pathname, entry->pathname) == 0) { in insert_te()
183 return (pte); in insert_te()
191 for (pte = te_list->next; pte != te_list; pte = pte->next) { in insert_te()
194 if (bcmp(&(pte->fh_u.fh), &(entry->fh_u.fh), in insert_te()
199 if (pte->uid == entry->uid) { in insert_te()
200 return (pte); in insert_te()
204 return (pte); in insert_te()
208 if (pte->fh_u.fh3.fh3_length == in insert_te()
210 bcmp(pte->fh_u.fh3.fh3_u.data, in insert_te()
212 pte->fh_u.fh3.fh3_length) == 0) in insert_te()
216 if (pte->uid == entry->uid) { in insert_te()
217 return (pte); in insert_te()
221 return (pte); in insert_te()
248 remove_te(struct transentry *pte) in remove_te() argument
250 if (pte->next) in remove_te()
251 remque(pte); in remove_te()
253 if (pte->principal_name) free(pte->principal_name); in remove_te()
254 if (pte->pathname) free(pte->pathname); in remove_te()
255 if (pte->pnb) freenetbuf(pte->pnb); in remove_te()
256 if (pte->netid) free(pte->netid); in remove_te()
258 free(pte); in remove_te()
467 struct transentry *pte; in nfslog_process_trans_timeout() local
480 for (pte = tf->te_list_v3_read->next; in nfslog_process_trans_timeout()
481 pte != tf->te_list_v3_read; in nfslog_process_trans_timeout()
482 pte = pte->next) { in nfslog_process_trans_timeout()
485 pte->lastupdate.tv_sec) > in nfslog_process_trans_timeout()
487 nfslog_print_trans_logentry(pte, tf); in nfslog_process_trans_timeout()
488 remove_te(pte); in nfslog_process_trans_timeout()
493 for (pte = tf->te_list_v3_write->next; in nfslog_process_trans_timeout()
494 pte != tf->te_list_v3_write; in nfslog_process_trans_timeout()
495 pte = pte->next) { in nfslog_process_trans_timeout()
498 pte->lastupdate.tv_sec) > in nfslog_process_trans_timeout()
500 nfslog_print_trans_logentry(pte, tf); in nfslog_process_trans_timeout()
501 remove_te(pte); in nfslog_process_trans_timeout()
506 for (pte = tf->te_list_v2_read->next; in nfslog_process_trans_timeout()
507 pte != tf->te_list_v2_read; in nfslog_process_trans_timeout()
508 pte = pte->next) { in nfslog_process_trans_timeout()
511 pte->lastupdate.tv_sec) > in nfslog_process_trans_timeout()
513 nfslog_print_trans_logentry(pte, tf); in nfslog_process_trans_timeout()
514 remove_te(pte); in nfslog_process_trans_timeout()
519 for (pte = tf->te_list_v2_write->next; in nfslog_process_trans_timeout()
520 pte != tf->te_list_v2_write; in nfslog_process_trans_timeout()
521 pte = pte->next) { in nfslog_process_trans_timeout()
524 pte->lastupdate.tv_sec) > in nfslog_process_trans_timeout()
526 nfslog_print_trans_logentry(pte, tf); in nfslog_process_trans_timeout()
527 remove_te(pte); in nfslog_process_trans_timeout()
557 struct transentry *pte = NULL; in trans_read() local
595 if (pte = insert_te(tf->te_list_v2_read, newte)) { in trans_read()
599 pte->totalbytes += in trans_read()
602 if (pte->lastupdate.tv_sec <= in trans_read()
604 pte->lastupdate = in trans_read()
607 if (pte->totalbytes < in trans_read()
609 pte = NULL; /* prevent printing of log entry */ in trans_read()
613 pte = newte; /* print a log record - complete file read */ in trans_read()
616 return (pte); in trans_read()
627 struct transentry *pte = NULL; in trans_write() local
662 if (pte = insert_te(tf->te_list_v2_write, newte)) { in trans_write()
668 if (pte->totalbytes + args->waargs_totcount > in trans_write()
670 nfslog_print_trans_logentry(pte, tf); in trans_write()
671 remove_te(pte); in trans_write()
673 pte = NULL; in trans_write()
678 pte->totalbytes += args->waargs_totcount; in trans_write()
680 if (pte->lastupdate.tv_sec <= in trans_write()
682 pte->lastupdate = in trans_write()
685 pte = NULL; /* prevent printing of log entry */ in trans_write()
688 return (pte); in trans_write()
699 struct transentry *pte = NULL; in trans_setattr() local
744 if (pte = insert_te(tf->te_list_v2_write, newte)) { in trans_setattr()
745 nfslog_print_trans_logentry(pte, tf); in trans_setattr()
746 remove_te(pte); in trans_setattr()
748 if (pte = insert_te(tf->te_list_v2_read, newte)) { in trans_setattr()
749 nfslog_print_trans_logentry(pte, tf); in trans_setattr()
750 remove_te(pte); in trans_setattr()
764 struct transentry *pte = NULL; in trans_create() local
812 if (pte = insert_te(tf->te_list_v2_write, newte)) { in trans_create()
813 nfslog_print_trans_logentry(pte, tf); in trans_create()
814 remove_te(pte); in trans_create()
816 if (pte = insert_te(tf->te_list_v2_read, newte)) { in trans_create()
817 nfslog_print_trans_logentry(pte, tf); in trans_create()
818 remove_te(pte); in trans_create()
833 struct transentry *pte = NULL; in trans_remove() local
870 if (pte = insert_te(tf->te_list_v2_write, newte)) { in trans_remove()
871 nfslog_print_trans_logentry(pte, tf); in trans_remove()
872 remove_te(pte); in trans_remove()
874 if (pte = insert_te(tf->te_list_v2_read, newte)) { in trans_remove()
875 nfslog_print_trans_logentry(pte, tf); in trans_remove()
876 remove_te(pte); in trans_remove()
878 if (pte = insert_te(tf->te_list_v3_write, newte)) { in trans_remove()
879 nfslog_print_trans_logentry(pte, tf); in trans_remove()
880 remove_te(pte); in trans_remove()
882 if (pte = insert_te(tf->te_list_v3_read, newte)) { in trans_remove()
883 nfslog_print_trans_logentry(pte, tf); in trans_remove()
884 remove_te(pte); in trans_remove()
992 struct transentry *pte = NULL; in trans_rename() local
1039 if (pte = insert_te(tf->te_list_v2_write, newte)) { in trans_rename()
1040 free(pte->pathname); in trans_rename()
1041 pte->pathname = strdup(path2); in trans_rename()
1043 if (pte = insert_te(tf->te_list_v2_read, newte)) { in trans_rename()
1044 free(pte->pathname); in trans_rename()
1045 pte->pathname = strdup(path2); in trans_rename()
1047 if (pte = insert_te(tf->te_list_v3_write, newte)) { in trans_rename()
1048 free(pte->pathname); in trans_rename()
1049 pte->pathname = strdup(path2); in trans_rename()
1051 if (pte = insert_te(tf->te_list_v3_read, newte)) { in trans_rename()
1052 free(pte->pathname); in trans_rename()
1053 pte->pathname = strdup(path2); in trans_rename()
1189 struct transentry *pte = NULL; in trans_read3() local
1228 if (pte = insert_te(tf->te_list_v3_read, newte)) { in trans_read3()
1232 pte->totalbytes += res->nfslog_READ3res_u.ok.count; in trans_read3()
1234 if (pte->lastupdate.tv_sec <= in trans_read3()
1236 pte->lastupdate = in trans_read3()
1239 if (pte->totalbytes < in trans_read3()
1241 pte = NULL; /* prevent printing of log entry */ in trans_read3()
1245 pte = newte; /* print a log record - complete file read */ in trans_read3()
1248 return (pte); in trans_read3()
1259 struct transentry *pte = NULL; in trans_write3() local
1295 if (pte = insert_te(tf->te_list_v3_write, newte)) { in trans_write3()
1301 if (pte->totalbytes + res->nfslog_WRITE3res_u.ok.count > in trans_write3()
1303 nfslog_print_trans_logentry(pte, tf); in trans_write3()
1304 remove_te(pte); in trans_write3()
1306 pte = NULL; in trans_write3()
1311 pte->totalbytes += res->nfslog_WRITE3res_u.ok.count; in trans_write3()
1313 if (pte->lastupdate.tv_sec <= in trans_write3()
1315 pte->lastupdate = in trans_write3()
1318 pte = NULL; /* prevent printing of log entry */ in trans_write3()
1321 return (pte); in trans_write3()
1332 struct transentry *pte = NULL; in trans_setattr3() local
1378 if (pte = insert_te(tf->te_list_v3_write, newte)) { in trans_setattr3()
1379 nfslog_print_trans_logentry(pte, tf); in trans_setattr3()
1380 remove_te(pte); in trans_setattr3()
1382 if (pte = insert_te(tf->te_list_v3_read, newte)) { in trans_setattr3()
1383 nfslog_print_trans_logentry(pte, tf); in trans_setattr3()
1384 remove_te(pte); in trans_setattr3()
1398 struct transentry *pte = NULL; in trans_create3() local
1442 if (pte = insert_te(tf->te_list_v3_write, newte)) { in trans_create3()
1443 nfslog_print_trans_logentry(pte, tf); in trans_create3()
1444 remove_te(pte); in trans_create3()
1446 if (pte = insert_te(tf->te_list_v3_read, newte)) { in trans_create3()
1447 nfslog_print_trans_logentry(pte, tf); in trans_create3()
1448 remove_te(pte); in trans_create3()
1463 struct transentry *pte = NULL; in trans_remove3() local
1500 if (pte = insert_te(tf->te_list_v3_write, newte)) { in trans_remove3()
1501 nfslog_print_trans_logentry(pte, tf); in trans_remove3()
1502 remove_te(pte); in trans_remove3()
1504 if (pte = insert_te(tf->te_list_v3_read, newte)) { in trans_remove3()
1505 nfslog_print_trans_logentry(pte, tf); in trans_remove3()
1506 remove_te(pte); in trans_remove3()
1508 if (pte = insert_te(tf->te_list_v2_write, newte)) { in trans_remove3()
1509 nfslog_print_trans_logentry(pte, tf); in trans_remove3()
1510 remove_te(pte); in trans_remove3()
1512 if (pte = insert_te(tf->te_list_v2_read, newte)) { in trans_remove3()
1513 nfslog_print_trans_logentry(pte, tf); in trans_remove3()
1514 remove_te(pte); in trans_remove3()
1621 struct transentry *pte = NULL; in trans_rename3() local
1662 if (pte = insert_te(tf->te_list_v3_write, newte)) { in trans_rename3()
1663 free(pte->pathname); in trans_rename3()
1664 pte->pathname = strdup(path2); in trans_rename3()
1666 if (pte = insert_te(tf->te_list_v3_read, newte)) { in trans_rename3()
1667 free(pte->pathname); in trans_rename3()
1668 pte->pathname = strdup(path2); in trans_rename3()
1670 if (pte = insert_te(tf->te_list_v2_write, newte)) { in trans_rename3()
1671 free(pte->pathname); in trans_rename3()
1672 pte->pathname = strdup(path2); in trans_rename3()
1674 if (pte = insert_te(tf->te_list_v2_read, newte)) { in trans_rename3()
1675 free(pte->pathname); in trans_rename3()
1676 pte->pathname = strdup(path2); in trans_rename3()
1858 struct transentry *pte = NULL; in nfslog_process_trans_rec() local
1880 pte = trans_read(logrec, tf, fhpath, path1); in nfslog_process_trans_rec()
1884 pte = trans_write(logrec, tf, fhpath, path1); in nfslog_process_trans_rec()
1888 pte = trans_setattr(logrec, tf, in nfslog_process_trans_rec()
1893 pte = trans_remove(logrec, tf, fhpath, path1); in nfslog_process_trans_rec()
1897 pte = trans_mkdir(logrec, fhpath, path1); in nfslog_process_trans_rec()
1901 pte = trans_rmdir(logrec, fhpath, path1); in nfslog_process_trans_rec()
1905 pte = trans_create(logrec, tf, fhpath, path1); in nfslog_process_trans_rec()
1909 pte = trans_rename(logrec, tf, in nfslog_process_trans_rec()
1914 pte = trans_link(logrec, fhpath, path1, path2); in nfslog_process_trans_rec()
1918 pte = trans_symlink(logrec, fhpath, path1); in nfslog_process_trans_rec()
1928 pte = trans_read3(logrec, tf, fhpath, path1); in nfslog_process_trans_rec()
1932 pte = trans_write3(logrec, tf, fhpath, path1); in nfslog_process_trans_rec()
1936 pte = trans_setattr3(logrec, tf, in nfslog_process_trans_rec()
1941 pte = trans_remove3(logrec, tf, in nfslog_process_trans_rec()
1946 pte = trans_mkdir3(logrec, fhpath, path1); in nfslog_process_trans_rec()
1950 pte = trans_rmdir3(logrec, fhpath, path1); in nfslog_process_trans_rec()
1954 pte = trans_create3(logrec, tf, in nfslog_process_trans_rec()
1959 pte = trans_rename3(logrec, tf, in nfslog_process_trans_rec()
1964 pte = trans_mknod3(logrec, fhpath, path1); in nfslog_process_trans_rec()
1968 pte = trans_link3(logrec, in nfslog_process_trans_rec()
1973 pte = trans_symlink3(logrec, fhpath, path1); in nfslog_process_trans_rec()
1983 if (pte != NULL) { in nfslog_process_trans_rec()
1984 nfslog_print_trans_logentry(pte, tf); in nfslog_process_trans_rec()
1985 remove_te(pte); in nfslog_process_trans_rec()
1992 nfslog_print_trans_logentry(struct transentry *pte, in nfslog_print_trans_logentry() argument
2003 remotehost = addrtoname(pte->pnb->buf); in nfslog_print_trans_logentry()
2005 datatype = (pte->datatype == TRANS_DATATYPE_BINARY ? 'b' : 'a'); in nfslog_print_trans_logentry()
2006 transoption = (pte->transoption == TRANS_OPTION_NOACTION ? '_' : '?'); in nfslog_print_trans_logentry()
2012 (pte->nfsvers == NFS_V3 ? "nfs3-" : "nfs-")); in nfslog_print_trans_logentry()
2013 (void) strcat(nfs_ident, pte->netid); in nfslog_print_trans_logentry()
2016 switch (pte->optype) { in nfslog_print_trans_logentry()
2065 if (strcmp(pte->principal_name, "") == 0) { in nfslog_print_trans_logentry()
2070 prin = pte->principal_name; in nfslog_print_trans_logentry()
2074 ctime((time_t *)&pte->starttime.tv_sec), in nfslog_print_trans_logentry()
2075 pte->lastupdate.tv_sec - pte->starttime.tv_sec, in nfslog_print_trans_logentry()
2077 (uint32_t)pte->totalbytes, in nfslog_print_trans_logentry()
2078 pte->pathname, in nfslog_print_trans_logentry()
2083 pte->uid, in nfslog_print_trans_logentry()