Lines Matching defs:up

182  * Sets up for writing to the log files.
398 /* clean up the log file */
404 /* clean up the map file */
445 /* round up length to a 4 byte boundary */
457 /* XXX debugging hack, round up to 16 byte boundary */
616 struct cfs_dlog_setattr *up;
626 up = &entp->dl_u.dl_setattr;
627 CACHEFS_DLOG_VATTR_COPY(vap, &up->dl_attrs,
629 up->dl_flags = flags;
630 up->dl_cid = cp->c_id;
632 &up->dl_times.tm_mtime, "cachefs_dlog_setattr: ", "mtime");
634 &up->dl_times.tm_ctime, "cachefs_dlog_setattr: ", "ctime");
637 len = copy_cred(cr, &up->dl_cred);
640 entp->dl_len = (int)(((uintptr_t)&up->dl_cred + len) - (uintptr_t)entp);
655 struct cfs_dlog_setsecattr *up;
675 * allocate entry. ACLs may be up to 24k currently, but they
680 len = sizeof (cfs_dlog_entry_t) - sizeof (up->dl_buffer) -
681 sizeof (up->dl_cred) + alen + clen;
685 /* make up for weird behavior in cachefs_dlog_output */
696 up = &entp->dl_u.dl_setsecattr;
697 up->dl_cid = cp->c_id;
700 &up->dl_times.tm_mtime, "cachefs_dlog_setsecattr: ", "mtime");
702 &up->dl_times.tm_ctime, "cachefs_dlog_setsecattr: ", "ctime");
705 (void) copy_cred(cr, &up->dl_cred);
708 up->dl_mask = vsec->vsa_mask;
709 up->dl_aclcnt = vsec->vsa_aclcnt;
710 up->dl_dfaclcnt = vsec->vsa_dfaclcnt;
713 aclp = (aclent_t *)((uintptr_t)(&up->dl_cred) + clen);
743 struct cfs_dlog_create *up;
754 up = &entp->dl_u.dl_create;
755 up->dl_parent_cid = pcp->c_id;
756 up->dl_new_cid = cp->c_id;
757 CACHEFS_DLOG_VATTR_COPY(vap, &up->dl_attrs,
759 up->dl_excl = excl;
760 up->dl_mode = mode;
761 up->dl_exists = exists;
762 bzero(&up->dl_fid, sizeof (up->dl_fid));
765 &up->dl_times.tm_mtime,
768 &up->dl_times.tm_ctime,
771 up->dl_times.tm_ctime.tv_sec = 0;
772 up->dl_times.tm_ctime.tv_nsec = 0;
773 up->dl_times.tm_mtime.tv_sec = 0;
774 up->dl_times.tm_mtime.tv_nsec = 0;
778 len = copy_cred(cr, &up->dl_cred);
781 curp = (caddr_t)(((uintptr_t)&up->dl_cred) + len);
802 struct cfs_dlog_remove *up;
811 up = &entp->dl_u.dl_remove;
812 up->dl_parent_cid = pcp->c_id;
813 up->dl_child_cid = cp->c_id;
815 &up->dl_times.tm_mtime, "cachefs_dlog_remove: ", "mtime");
817 &up->dl_times.tm_ctime, "cachefs_dlog_remove: ", "ctime");
819 len = copy_cred(cr, &up->dl_cred);
822 curp = (caddr_t)(((uintptr_t)&up->dl_cred) + len);
843 struct cfs_dlog_link *up;
852 up = &entp->dl_u.dl_link;
853 up->dl_parent_cid = pcp->c_id;
854 up->dl_child_cid = cp->c_id;
856 &up->dl_times.tm_mtime, "cachefs_dlog_link: ", "mtime");
858 &up->dl_times.tm_ctime, "cachefs_dlog_link: ", "ctime");
861 len = copy_cred(cr, &up->dl_cred);
864 curp = (caddr_t)(((uintptr_t)&up->dl_cred) + len);
885 struct cfs_dlog_rename *up;
894 up = &entp->dl_u.dl_rename;
895 up->dl_oparent_cid = odcp->c_id;
896 up->dl_nparent_cid = ndcp->c_id;
897 up->dl_child_cid = cp->c_id;
899 &up->dl_times.tm_mtime, "cachefs_dlog_rename: ", "mtime");
901 &up->dl_times.tm_ctime, "cachefs_dlog_rename: ", "ctime");
903 up->dl_del_cid = delcp->c_id;
905 &up->dl_del_times.tm_mtime,
908 &up->dl_del_times.tm_ctime,
911 up->dl_del_cid.cid_fileno = 0;
912 up->dl_del_cid.cid_flags = 0;
913 up->dl_del_times.tm_mtime.tv_sec = 0;
914 up->dl_del_times.tm_mtime.tv_nsec = 0;
915 up->dl_del_times.tm_ctime.tv_sec = 0;
916 up->dl_del_times.tm_ctime.tv_nsec = 0;
920 len = copy_cred(cr, &up->dl_cred);
923 curp = (caddr_t)(((uintptr_t)&up->dl_cred) + len);
949 struct cfs_dlog_mkdir *up;
958 up = &entp->dl_u.dl_mkdir;
959 up->dl_parent_cid = pcp->c_id;
960 up->dl_child_cid = cp->c_id;
961 CACHEFS_DLOG_VATTR_COPY(vap, &up->dl_attrs,
963 bzero(&up->dl_fid, sizeof (up->dl_fid));
966 len = copy_cred(cr, &up->dl_cred);
969 curp = (caddr_t)(((uintptr_t)&up->dl_cred) + len);
990 struct cfs_dlog_rmdir *up;
1007 up = &entp->dl_u.dl_rmdir;
1008 up->dl_parent_cid = pcp->c_id;
1011 len = copy_cred(cr, &up->dl_cred);
1014 curp = (caddr_t)(((uintptr_t)&up->dl_cred) + len);
1035 struct cfs_dlog_symlink *up;
1046 up = &entp->dl_u.dl_symlink;
1047 up->dl_parent_cid = pcp->c_id;
1048 up->dl_child_cid = cp->c_id;
1049 CACHEFS_DLOG_VATTR_COPY(vap, &up->dl_attrs,
1051 up->dl_times.tm_ctime.tv_sec = 0;
1052 up->dl_times.tm_ctime.tv_nsec = 0;
1053 up->dl_times.tm_mtime.tv_sec = 0;
1054 up->dl_times.tm_mtime.tv_nsec = 0;
1055 bzero(&up->dl_fid, sizeof (up->dl_fid));
1058 len = copy_cred(cr, &up->dl_cred);
1061 curp = (caddr_t)(((uintptr_t)&up->dl_cred) + len);
1086 struct cfs_dlog_modify *up;
1095 up = &entp->dl_u.dl_modify;
1096 up->dl_cid = cp->c_id;
1098 &up->dl_times.tm_mtime,
1101 &up->dl_times.tm_ctime,
1104 up->dl_next = 0;
1107 len = copy_cred(cr, &up->dl_cred);
1110 entp->dl_len = (int)(((uintptr_t)&up->dl_cred + len) - (uintptr_t)entp);
1126 struct cfs_dlog_mapfid *up;
1133 up = &entp->dl_u.dl_mapfid;
1134 up->dl_cid = cp->c_id;
1135 CACHEFS_FID_COPY(&cp->c_cookie, &up->dl_fid);
1138 /* entp->dl_len = ((caddr_t)up - (caddr_t)entp + sizeof (*up)); */