Lines Matching refs:vattr

111 static int	nfs_setattrrpc(struct vnode *, struct vattr *, struct ucred *,
199 struct componentname *cnp, struct vattr *vap);
357 * ufs_access() locally using the vattr. This may not be correct,
497 struct vattr vattr;
537 error = VOP_GETATTR(vp, &vattr, ap->a_cred);
544 np->n_mtime = vattr.va_mtime;
546 np->n_change = vattr.va_filerev;
549 error = VOP_GETATTR(vp, &vattr, ap->a_cred);
556 if ((NFS_ISV4(vp) && np->n_change != vattr.va_filerev) ||
557 NFS_TIMESPEC_COMPARE(&np->n_mtime, &vattr.va_mtime)) {
568 np->n_mtime = vattr.va_mtime;
570 np->n_change = vattr.va_filerev;
613 vnode_create_vobject(vp, vattr.va_size, ap->a_td);
806 struct vattr *vap = ap->a_vap;
807 struct vattr vattr;
819 if (ncl_getattrcache(vp, &vattr) == 0) {
820 vap->va_type = vattr.va_type;
821 vap->va_mode = vattr.va_mode;
822 vap->va_nlink = vattr.va_nlink;
823 vap->va_uid = vattr.va_uid;
824 vap->va_gid = vattr.va_gid;
825 vap->va_fsid = vattr.va_fsid;
826 vap->va_fileid = vattr.va_fileid;
827 vap->va_size = vattr.va_size;
828 vap->va_blocksize = vattr.va_blocksize;
829 vap->va_atime = vattr.va_atime;
830 vap->va_mtime = vattr.va_mtime;
831 vap->va_ctime = vattr.va_ctime;
832 vap->va_gen = vattr.va_gen;
833 vap->va_flags = vattr.va_flags;
834 vap->va_rdev = vattr.va_rdev;
835 vap->va_bytes = vattr.va_bytes;
836 vap->va_filerev = vattr.va_filerev;
878 struct vattr *vap = ap->a_vap;
985 nfs_setattrrpc(struct vnode *vp, struct vattr *vap, struct ucred *cred,
1032 struct vattr vattr;
1100 VOP_GETATTR(newvp, &vattr, cnp->cn_cred) == 0 &&
1101 timespeccmp(&vattr.va_ctime, &nctime, ==))) {
1127 VOP_GETATTR(dvp, &vattr, cnp->cn_cred) == 0 &&
1128 timespeccmp(&vattr.va_mtime, &nctime, ==)) {
1422 struct vattr *vap)
1428 struct vattr vattr;
1438 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)))
1523 struct vattr *vap = ap->a_vap;
1532 struct vattr vattr;
1540 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)))
1648 struct vattr vattr;
1655 VOP_GETATTR(vp, &vattr, cnp->cn_cred) == 0 &&
1656 vattr.va_nlink > 1)) {
2000 struct vattr *vap = ap->a_vap;
2076 struct vattr *vap = ap->a_vap;
2080 struct vattr vattr;
2085 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)) != 0)
2198 struct vattr vattr;
2210 if (VOP_GETATTR(vp, &vattr, ap->a_cred) == 0) {
2212 if ((NFS_ISV4(vp) && np->n_change == vattr.va_filerev) ||
2213 !NFS_TIMESPEC_COMPARE(&np->n_mtime, &vattr.va_mtime)) {
3007 struct vattr va;
3224 * Essentially just get vattr and then imitate iaccess() since the device is
3230 struct vattr *vap;
3234 struct vattr vattr;
3252 vap = &vattr;
3310 struct vattr vattr;
3323 VATTR_NULL(&vattr);
3325 vattr.va_atime = np->n_atim;
3327 vattr.va_mtime = np->n_mtim;
3329 (void)VOP_SETATTR(vp, &vattr, ap->a_cred);