Rationalize the vfs_checkexp macro to be VFS_CHECKEXP.
This commit is contained in:
parent
b68336a42b
commit
bc94ad4c5e
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: nfs_subs.c,v 1.64 1999/02/26 23:44:47 wrstuden Exp $ */
|
/* $NetBSD: nfs_subs.c,v 1.65 1999/02/27 00:47:34 wrstuden Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
@ -2217,7 +2217,7 @@ nfsrv_fhtovp(fhp, lockflag, vpp, cred, slp, nam, rdonlyp, kerbflag, pubflag)
|
|||||||
mp = vfs_getvfs(&fhp->fh_fsid);
|
mp = vfs_getvfs(&fhp->fh_fsid);
|
||||||
if (!mp)
|
if (!mp)
|
||||||
return (ESTALE);
|
return (ESTALE);
|
||||||
error = VFS_CHKEXP(mp, nam, &exflags, &credanon);
|
error = VFS_CHECKEXP(mp, nam, &exflags, &credanon);
|
||||||
if (error)
|
if (error)
|
||||||
return (error);
|
return (error);
|
||||||
error = VFS_FHTOVP(mp, &fhp->fh_fid, vpp);
|
error = VFS_FHTOVP(mp, &fhp->fh_fid, vpp);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: mount.h,v 1.72 1999/02/26 23:44:48 wrstuden Exp $ */
|
/* $NetBSD: mount.h,v 1.73 1999/02/27 00:47:35 wrstuden Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989, 1991, 1993
|
* Copyright (c) 1989, 1991, 1993
|
||||||
@ -314,7 +314,7 @@ struct vfsops {
|
|||||||
#define VFS_SYNC(MP, WAIT, C, P) (*(MP)->mnt_op->vfs_sync)(MP, WAIT, C, P)
|
#define VFS_SYNC(MP, WAIT, C, P) (*(MP)->mnt_op->vfs_sync)(MP, WAIT, C, P)
|
||||||
#define VFS_VGET(MP, INO, VPP) (*(MP)->mnt_op->vfs_vget)(MP, INO, VPP)
|
#define VFS_VGET(MP, INO, VPP) (*(MP)->mnt_op->vfs_vget)(MP, INO, VPP)
|
||||||
#define VFS_FHTOVP(MP, FIDP, VPP) (*(MP)->mnt_op->vfs_fhtovp)(MP, FIDP, VPP)
|
#define VFS_FHTOVP(MP, FIDP, VPP) (*(MP)->mnt_op->vfs_fhtovp)(MP, FIDP, VPP)
|
||||||
#define VFS_CHKEXP(MP, NAM, EXFLG, CRED) \
|
#define VFS_CHECKEXP(MP, NAM, EXFLG, CRED) \
|
||||||
(*(MP)->mnt_op->vfs_checkexp)(MP, NAM, EXFLG, CRED)
|
(*(MP)->mnt_op->vfs_checkexp)(MP, NAM, EXFLG, CRED)
|
||||||
#define VFS_VPTOFH(VP, FIDP) (*(VP)->v_mount->mnt_op->vfs_vptofh)(VP, FIDP)
|
#define VFS_VPTOFH(VP, FIDP) (*(VP)->v_mount->mnt_op->vfs_vptofh)(VP, FIDP)
|
||||||
#endif /* _KERNEL */
|
#endif /* _KERNEL */
|
||||||
|
Loading…
Reference in New Issue
Block a user