diff options
author | bde <bde@FreeBSD.org> | 1995-11-16 11:24:06 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-16 11:24:06 +0000 |
commit | 1021ce9fbefd8e0ff6ee89a5db8eee39ff9d4370 (patch) | |
tree | ecdba06022217a2c40aad1e9f1a8ca313b3051c3 /sys | |
parent | 83c92cd3094b93dfc07bf9c48614a3cb212fc0f1 (diff) | |
download | FreeBSD-src-1021ce9fbefd8e0ff6ee89a5db8eee39ff9d4370.zip FreeBSD-src-1021ce9fbefd8e0ff6ee89a5db8eee39ff9d4370.tar.gz |
Fixed the type of portal_sync(). Trailing args were missing.
Fixed the type of portal_fhtovp(). The args had little resemblance to
the correct ones.
Added prototypes.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/portalfs/portal_vfsops.c | 31 | ||||
-rw-r--r-- | sys/miscfs/portal/portal_vfsops.c | 31 |
2 files changed, 56 insertions, 6 deletions
diff --git a/sys/fs/portalfs/portal_vfsops.c b/sys/fs/portalfs/portal_vfsops.c index 52c7bcf..3be61d5 100644 --- a/sys/fs/portalfs/portal_vfsops.c +++ b/sys/fs/portalfs/portal_vfsops.c @@ -35,7 +35,7 @@ * * @(#)portal_vfsops.c 8.6 (Berkeley) 1/21/94 * - * $Id: portal_vfsops.c,v 1.7 1995/03/16 20:23:41 wollman Exp $ + * $Id: portal_vfsops.c,v 1.8 1995/05/30 08:07:05 rgrimes Exp $ */ /* @@ -62,6 +62,26 @@ #include <sys/un.h> #include <miscfs/portal/portal.h> +extern int portal_init __P((void)); +extern int portal_mount __P((struct mount *mp, char *path, caddr_t data, + struct nameidata *ndp, struct proc *p)); +extern int portal_start __P((struct mount *mp, int flags, struct proc *p)); +extern int portal_unmount __P((struct mount *mp, int mntflags, + struct proc *p)); +extern int portal_root __P((struct mount *mp, struct vnode **vpp)); +extern int portal_quotactl __P((struct mount *mp, int cmd, uid_t uid, + caddr_t arg, struct proc *p)); +extern int portal_statfs __P((struct mount *mp, struct statfs *sbp, + struct proc *p)); +extern int portal_sync __P((struct mount *mp, int waitfor, + struct ucred *cred, struct proc *p)); +extern int portal_vget __P((struct mount *mp, ino_t ino, + struct vnode **vpp)); +extern int portal_fhtovp __P((struct mount *mp, struct fid *fhp, + struct mbuf *nam, struct vnode **vpp, + int *exflagsp, struct ucred **credanonp)); +extern int portal_vptofh __P((struct vnode *vp, struct fid *fhp)); + int portal_init() { @@ -264,9 +284,11 @@ portal_statfs(mp, sbp, p) } int -portal_sync(mp, waitfor) +portal_sync(mp, waitfor, cred, p) struct mount *mp; int waitfor; + struct ucred *cred; + struct proc *p; { return (0); @@ -283,10 +305,13 @@ portal_vget(mp, ino, vpp) } int -portal_fhtovp(mp, fhp, vpp) +portal_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp) struct mount *mp; struct fid *fhp; + struct mbuf *nam; struct vnode **vpp; + int *exflagsp; + struct ucred **credanonp; { return (EOPNOTSUPP); diff --git a/sys/miscfs/portal/portal_vfsops.c b/sys/miscfs/portal/portal_vfsops.c index 52c7bcf..3be61d5 100644 --- a/sys/miscfs/portal/portal_vfsops.c +++ b/sys/miscfs/portal/portal_vfsops.c @@ -35,7 +35,7 @@ * * @(#)portal_vfsops.c 8.6 (Berkeley) 1/21/94 * - * $Id: portal_vfsops.c,v 1.7 1995/03/16 20:23:41 wollman Exp $ + * $Id: portal_vfsops.c,v 1.8 1995/05/30 08:07:05 rgrimes Exp $ */ /* @@ -62,6 +62,26 @@ #include <sys/un.h> #include <miscfs/portal/portal.h> +extern int portal_init __P((void)); +extern int portal_mount __P((struct mount *mp, char *path, caddr_t data, + struct nameidata *ndp, struct proc *p)); +extern int portal_start __P((struct mount *mp, int flags, struct proc *p)); +extern int portal_unmount __P((struct mount *mp, int mntflags, + struct proc *p)); +extern int portal_root __P((struct mount *mp, struct vnode **vpp)); +extern int portal_quotactl __P((struct mount *mp, int cmd, uid_t uid, + caddr_t arg, struct proc *p)); +extern int portal_statfs __P((struct mount *mp, struct statfs *sbp, + struct proc *p)); +extern int portal_sync __P((struct mount *mp, int waitfor, + struct ucred *cred, struct proc *p)); +extern int portal_vget __P((struct mount *mp, ino_t ino, + struct vnode **vpp)); +extern int portal_fhtovp __P((struct mount *mp, struct fid *fhp, + struct mbuf *nam, struct vnode **vpp, + int *exflagsp, struct ucred **credanonp)); +extern int portal_vptofh __P((struct vnode *vp, struct fid *fhp)); + int portal_init() { @@ -264,9 +284,11 @@ portal_statfs(mp, sbp, p) } int -portal_sync(mp, waitfor) +portal_sync(mp, waitfor, cred, p) struct mount *mp; int waitfor; + struct ucred *cred; + struct proc *p; { return (0); @@ -283,10 +305,13 @@ portal_vget(mp, ino, vpp) } int -portal_fhtovp(mp, fhp, vpp) +portal_fhtovp(mp, fhp, nam, vpp, exflagsp, credanonp) struct mount *mp; struct fid *fhp; + struct mbuf *nam; struct vnode **vpp; + int *exflagsp; + struct ucred **credanonp; { return (EOPNOTSUPP); |