Lines Matching defs:vattr
125 static int nfs_setattrrpc(struct vnode *, struct vattr *, struct ucred *,
210 struct componentname *cnp, struct vattr *vap);
368 * ufs_access() locally using the vattr. This may not be correct,
508 struct vattr vattr;
548 error = VOP_GETATTR(vp, &vattr, ap->a_cred);
555 np->n_mtime = vattr.va_mtime;
557 np->n_change = vattr.va_filerev;
560 error = VOP_GETATTR(vp, &vattr, ap->a_cred);
567 if ((NFS_ISV4(vp) && np->n_change != vattr.va_filerev) ||
568 NFS_TIMESPEC_COMPARE(&np->n_mtime, &vattr.va_mtime)) {
579 np->n_mtime = vattr.va_mtime;
581 np->n_change = vattr.va_filerev;
624 vnode_create_vobject(vp, vattr.va_size, ap->a_td);
816 struct vattr *vap = ap->a_vap;
817 struct vattr vattr;
829 if (ncl_getattrcache(vp, &vattr) == 0) {
830 vap->va_type = vattr.va_type;
831 vap->va_mode = vattr.va_mode;
832 vap->va_nlink = vattr.va_nlink;
833 vap->va_uid = vattr.va_uid;
834 vap->va_gid = vattr.va_gid;
835 vap->va_fsid = vattr.va_fsid;
836 vap->va_fileid = vattr.va_fileid;
837 vap->va_size = vattr.va_size;
838 vap->va_blocksize = vattr.va_blocksize;
839 vap->va_atime = vattr.va_atime;
840 vap->va_mtime = vattr.va_mtime;
841 vap->va_ctime = vattr.va_ctime;
842 vap->va_gen = vattr.va_gen;
843 vap->va_flags = vattr.va_flags;
844 vap->va_rdev = vattr.va_rdev;
845 vap->va_bytes = vattr.va_bytes;
846 vap->va_filerev = vattr.va_filerev;
888 struct vattr *vap = ap->a_vap;
998 nfs_setattrrpc(struct vnode *vp, struct vattr *vap, struct ucred *cred,
1045 struct vattr vattr;
1112 VOP_GETATTR(newvp, &vattr, cnp->cn_cred) == 0 &&
1113 timespeccmp(&vattr.va_ctime, &nctime, ==))) {
1139 VOP_GETATTR(dvp, &vattr, cnp->cn_cred) == 0 &&
1140 timespeccmp(&vattr.va_mtime, &nctime, ==)) {
1434 struct vattr *vap)
1440 struct vattr vattr;
1450 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)))
1535 struct vattr *vap = ap->a_vap;
1544 struct vattr vattr;
1552 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)))
1660 struct vattr vattr;
1667 VOP_GETATTR(vp, &vattr, cnp->cn_cred) == 0 &&
1668 vattr.va_nlink > 1)) {
2012 struct vattr *vap = ap->a_vap;
2088 struct vattr *vap = ap->a_vap;
2092 struct vattr vattr;
2097 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)) != 0)
2210 struct vattr vattr;
2222 if (VOP_GETATTR(vp, &vattr, ap->a_cred) == 0) {
2224 if ((NFS_ISV4(vp) && np->n_change == vattr.va_filerev) ||
2225 !NFS_TIMESPEC_COMPARE(&np->n_mtime, &vattr.va_mtime)) {
2991 struct vattr va;
3217 * Essentially just get vattr and then imitate iaccess() since the device is
3223 struct vattr *vap;
3227 struct vattr vattr;
3245 vap = &vattr;
3303 struct vattr vattr;
3316 VATTR_NULL(&vattr);
3318 vattr.va_atime = np->n_atim;
3320 vattr.va_mtime = np->n_mtim;
3322 (void)VOP_SETATTR(vp, &vattr, ap->a_cred);