Lines Matching defs:targp
80 static void cachefs_attr_setup(vattr_t *srcp, vattr_t *targp, cnode_t *cp,
9540 * Fills in targp with attribute information from srcp, cp
9544 cachefs_attr_setup(vattr_t *srcp, vattr_t *targp, cnode_t *cp, cred_t *cr)
9555 targp->va_mask = 0; /* initialize all fields */
9556 targp->va_mode = srcp->va_mode;
9557 targp->va_type = srcp->va_type;
9558 targp->va_nlink = 1;
9559 targp->va_nodeid = 0;
9562 targp->va_uid = srcp->va_uid;
9564 targp->va_uid = crgetuid(cr);
9567 targp->va_gid = srcp->va_gid;
9569 targp->va_gid = crgetgid(cr);
9572 targp->va_fsid = srcp->va_fsid;
9574 targp->va_fsid = 0; /* initialize all fields */
9578 targp->va_atime = srcp->va_atime;
9580 targp->va_atime.tv_sec = now;
9583 targp->va_mtime = srcp->va_mtime;
9585 targp->va_mtime.tv_sec = now;
9588 targp->va_ctime = srcp->va_ctime;
9590 targp->va_ctime.tv_sec = now;
9594 targp->va_size = srcp->va_size;
9596 targp->va_size = 0;
9603 targp->va_blksize = cp->c_metadata.md_vattr.va_blksize;
9604 targp->va_rdev = cp->c_metadata.md_vattr.va_rdev;
9605 targp->va_nblocks = cp->c_metadata.md_vattr.va_nblocks;
9606 targp->va_seq = 0; /* Never keep the sequence number */