From b9136a6115cbac97ab114f16b1aacf4eb20ad2c1 Mon Sep 17 00:00:00 2001 From: alfred Date: Sat, 11 Sep 1999 00:46:08 +0000 Subject: Seperate the export check in VFS_FHTOVP, exports are now checked via VFS_CHECKEXP. Add fh(open|stat|stafs) syscalls to allow userland to query filesystems based on (network) filehandle. Obtained from: NetBSD --- sys/ntfs/ntfs_vfsops.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/ntfs') diff --git a/sys/ntfs/ntfs_vfsops.c b/sys/ntfs/ntfs_vfsops.c index 4106fc3..a77647e 100644 --- a/sys/ntfs/ntfs_vfsops.c +++ b/sys/ntfs/ntfs_vfsops.c @@ -93,9 +93,10 @@ static int ntfs_vptofh __P((struct vnode *, struct fid *)); static int ntfs_init __P((struct vfsconf *)); #if 0 /* may be implemented at a later date */ static int ntfs_fhtovp __P((struct mount *, struct fid *, - struct sockaddr *, struct vnode **, - int *, struct ucred **)); -#endif + struct vnode **)); +static int ntfs_checkexp __P((struct vnode *, struct mbuf *, + int *, struct ucred **)); +#endif /* 0, default ops in FreeBSD */ #elif defined(__NetBSD__) static void ntfs_init __P((void)); static int ntfs_fhtovp __P((struct mount *, struct fid *, @@ -952,6 +953,7 @@ static struct vfsops ntfs_vfsops = { vfs_stdsync, ntfs_vget, vfs_stdfhtovp, + vfs_stdcheckexp, vfs_stdvptofh, ntfs_init, NULL -- cgit v1.1