diff options
author | 2000-02-07 04:47:53 +0000 | |
---|---|---|
committer | 2000-02-07 04:47:53 +0000 | |
commit | b94c2dd2d16660d1c3e4495f359d0b47dda4cbdc (patch) | |
tree | 8ced025a7da57824dfe81e92ad0bbfe5fe2e6396 | |
parent | Update to reflect recent changes to the interface. (diff) | |
download | wireguard-openbsd-b94c2dd2d16660d1c3e4495f359d0b47dda4cbdc.tar.xz wireguard-openbsd-b94c2dd2d16660d1c3e4495f359d0b47dda4cbdc.zip |
moved sys_getfh to vfs_syscalls.c
-rw-r--r-- | sys/nfs/nfs_syscalls.c | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c index 57d1929db52..c092d8cb684 100644 --- a/sys/nfs/nfs_syscalls.c +++ b/sys/nfs/nfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_syscalls.c,v 1.12 1997/12/02 16:57:58 csapuntz Exp $ */ +/* $OpenBSD: nfs_syscalls.c,v 1.13 2000/02/07 04:47:53 assar Exp $ */ /* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */ /* @@ -114,50 +114,9 @@ static void nfsd_rt __P((int, struct nfsrv_descript *, int)); /* * NFS server system calls - * getfh() lives here too, but maybe should move to kern/vfs_syscalls.c */ /* - * Get file handle system call - */ -int -sys_getfh(p, v, retval) - struct proc *p; - register void *v; - register_t *retval; -{ - register struct sys_getfh_args /* { - syscallarg(char *) fname; - syscallarg(fhandle_t *) fhp; - } */ *uap = v; - register struct vnode *vp; - fhandle_t fh; - int error; - struct nameidata nd; - - /* - * Must be super user - */ - error = suser(p->p_ucred, &p->p_acflag); - if(error) - return (error); - NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, - SCARG(uap, fname), p); - error = namei(&nd); - if (error) - return (error); - vp = nd.ni_vp; - bzero((caddr_t)&fh, sizeof(fh)); - fh.fh_fsid = vp->v_mount->mnt_stat.f_fsid; - error = VFS_VPTOFH(vp, &fh.fh_fid); - vput(vp); - if (error) - return (error); - error = copyout((caddr_t)&fh, (caddr_t)SCARG(uap, fhp), sizeof (fh)); - return (error); -} - -/* * Nfs server pseudo system call for the nfsd's * Based on the flag value it either: * - adds a socket to the selection list |