Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/pseudofs/pseudofs_vnops.c
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | pfs_access(struct vop_access_args *va) | ||||
struct vnode *vn = va->a_vp; | struct vnode *vn = va->a_vp; | ||||
struct pfs_vdata *pvd = vn->v_data; | struct pfs_vdata *pvd = vn->v_data; | ||||
struct vattr vattr; | struct vattr vattr; | ||||
int error; | int error; | ||||
PFS_TRACE(("%s", pvd->pvd_pn->pn_name)); | PFS_TRACE(("%s", pvd->pvd_pn->pn_name)); | ||||
(void)pvd; | (void)pvd; | ||||
error = VOP_GETATTR(vn, &vattr, va->a_cred); | error = VOP_GETATTR(vn, 0, &vattr, va->a_cred); | ||||
if (error) | if (error) | ||||
PFS_RETURN (error); | PFS_RETURN (error); | ||||
error = vaccess(vn->v_type, vattr.va_mode, vattr.va_uid, vattr.va_gid, | error = vaccess(vn->v_type, vattr.va_mode, vattr.va_uid, vattr.va_gid, | ||||
va->a_accmode, va->a_cred); | va->a_accmode, va->a_cred); | ||||
PFS_RETURN (error); | PFS_RETURN (error); | ||||
} | } | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 996 Lines • Show Last 20 Lines |