FreeBSD/sys/fs/nfsserver/nfs_nfsdport.c
/*
 * Get a vnode for a file handle, without checking exports, etc.
 */
Get a vnode for a file handle, without checking exports, etc.
Get a vnode for a file handle without checking exports etc .
struct vnode *
nfsvno_getvp(fhandle_t *fhp)
{
	struct mount *mp;
	struct vnode *vp;
	int error;
	mp = vfs_busyfs(&fhp->fh_fsid);
	if (mp == NULL)
		return (NULL);
	error = VFS_FHTOVP(mp, &fhp->fh_fid, LK_EXCLUSIVE, &vp);
	vfs_unbusy(mp);
	if (error)
		return (NULL);
	return (vp);
}
struct vnode * nfsvno_getvp ( fhandle_t * fhp ) { struct mount * mp ; struct vnode * vp ; int error ; mp = vfs_busyfs ( & fhp -> fh_fsid ) ; if ( mp == NULL ) return ( NULL ) ; error = VFS_FHTOVP ( mp , & fhp -> fh_fid , LK_EXCLUSIVE , & vp ) ; vfs_unbusy ( mp ) ; if ( error ) return ( NULL ) ; return ( vp ) ; }
Get a vnode for a file handle, without checking exports, etc.
Get a vnode for a file handle without checking exports etc .