Lines Matching defs:vattr

114 static int	nfs_setattrrpc(struct vnode *, struct vattr *, struct ucred *,
249 struct componentname *cnp, struct vattr *vap);
481 * ufs_access() locally using the vattr. This may not be correct,
620 struct vattr vattr;
666 error = VOP_GETATTR(vp, &vattr, ap->a_cred);
673 np->n_mtime = vattr.va_mtime;
675 np->n_change = vattr.va_filerev;
678 error = VOP_GETATTR(vp, &vattr, ap->a_cred);
685 if ((NFS_ISV4(vp) && np->n_change != vattr.va_filerev) ||
686 NFS_TIMESPEC_COMPARE(&np->n_mtime, &vattr.va_mtime)) {
702 np->n_mtime = vattr.va_mtime;
704 np->n_change = vattr.va_filerev;
752 vnode_create_vobject(vp, vattr.va_size, ap->a_td);
989 struct vattr *vap = ap->a_vap;
990 struct vattr vattr;
1006 if (nmp->nm_fhsize > 0 && ncl_getattrcache(vp, &vattr) == 0) {
1007 ncl_copy_vattr(vap, &vattr);
1050 struct vattr *vap = ap->a_vap;
1168 nfs_setattrrpc(struct vnode *vp, struct vattr *vap, struct ucred *cred,
1214 struct vattr vattr;
1279 VOP_GETATTR(newvp, &vattr, cnp->cn_cred) == 0 &&
1280 timespeccmp(&vattr.va_ctime, &nctime, ==))) {
1303 VOP_GETATTR(dvp, &vattr, cnp->cn_cred) == 0 &&
1304 timespeccmp(&vattr.va_mtime, &nctime, ==)) {
1646 struct vattr *vap)
1652 struct vattr vattr;
1662 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)))
1745 struct vattr *vap = ap->a_vap;
1754 struct vattr vattr;
1762 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)))
1872 struct vattr vattr;
1878 VOP_GETATTR(vp, &vattr, cnp->cn_cred) == 0 &&
1879 vattr.va_nlink > 1)) {
2216 struct vattr *vap = ap->a_vap;
2296 struct vattr *vap = ap->a_vap;
2300 struct vattr vattr;
2305 if ((error = VOP_GETATTR(dvp, &vattr, cnp->cn_cred)) != 0)
2424 struct vattr vattr;
2438 if (VOP_GETATTR(vp, &vattr, ap->a_cred) == 0) {
2440 if ((NFS_ISV4(vp) && np->n_change == vattr.va_filerev) ||
2441 !NFS_TIMESPEC_COMPARE(&np->n_mtime, &vattr.va_mtime)) {
3249 struct vattr va;
3436 * Essentially just get vattr and then imitate iaccess() since the device is
3442 struct vattr *vap;
3446 struct vattr vattr;
3464 vap = &vattr;
3522 struct vattr vattr;
3535 VATTR_NULL(&vattr);
3537 vattr.va_atime = np->n_atim;
3539 vattr.va_mtime = np->n_mtim;
3541 (void)VOP_SETATTR(vp, &vattr, ap->a_cred);
3804 struct vattr va, *vap;