diff options
Diffstat (limited to 'sys/fs/umapfs')
-rw-r--r-- | sys/fs/umapfs/umap_subr.c | 12 | ||||
-rw-r--r-- | sys/fs/umapfs/umap_vfsops.c | 25 | ||||
-rw-r--r-- | sys/fs/umapfs/umap_vnops.c | 12 |
3 files changed, 43 insertions, 6 deletions
diff --git a/sys/fs/umapfs/umap_subr.c b/sys/fs/umapfs/umap_subr.c index da73487..0267584 100644 --- a/sys/fs/umapfs/umap_subr.c +++ b/sys/fs/umapfs/umap_subr.c @@ -35,7 +35,7 @@ * * @(#)umap_subr.c 8.6 (Berkeley) 1/26/94 * - * $Id: umap_subr.c,v 1.4 1995/05/30 08:07:17 rgrimes Exp $ + * $Id: umap_subr.c,v 1.5 1995/12/03 14:38:57 bde Exp $ */ #include <sys/param.h> @@ -48,6 +48,8 @@ #include <sys/malloc.h> #include <miscfs/umapfs/umap.h> +extern int umapfs_init __P((void)); + #define LOG2_SIZEVNODE 7 /* log2(sizeof struct vnode) */ #define NUMAPNODECACHE 16 #define UMAP_NHASH(vp) ((((u_long) vp)>>LOG2_SIZEVNODE) & (NUMAPNODECACHE-1)) @@ -70,6 +72,14 @@ struct umap_node_cache { static struct umap_node_cache umap_node_cache[NUMAPNODECACHE]; +static u_long umap_findid __P((u_long id, u_long map[][2], int nentries)); +static int umap_node_alloc __P((struct mount *mp, struct vnode *lowervp, + struct vnode **vpp)); +static struct vnode * + umap_node_find __P((struct mount *mp, struct vnode *targetvp)); +static struct umap_node_cache * + umap_node_hash __P((struct vnode *targetvp)); + /* * Initialise cache headers */ diff --git a/sys/fs/umapfs/umap_vfsops.c b/sys/fs/umapfs/umap_vfsops.c index 64f05bb..12f01df 100644 --- a/sys/fs/umapfs/umap_vfsops.c +++ b/sys/fs/umapfs/umap_vfsops.c @@ -35,7 +35,7 @@ * * @(#)umap_vfsops.c 8.3 (Berkeley) 1/21/94 * - * $Id: umap_vfsops.c,v 1.7 1995/03/16 20:23:43 wollman Exp $ + * $Id: umap_vfsops.c,v 1.8 1995/05/30 08:07:18 rgrimes Exp $ */ /* @@ -54,6 +54,27 @@ #include <sys/malloc.h> #include <miscfs/umapfs/umap.h> +extern int umapfs_init __P((void)); + +extern int umapfs_fhtovp __P((struct mount *mp, struct fid *fidp, + struct mbuf *nam, struct vnode **vpp, + int *exflagsp, struct ucred **credanonp)); +extern int umapfs_mount __P((struct mount *mp, char *path, caddr_t data, + struct nameidata *ndp, struct proc *p)); +extern int umapfs_quotactl __P((struct mount *mp, int cmd, uid_t uid, + caddr_t arg, struct proc *p)); +extern int umapfs_root __P((struct mount *mp, struct vnode **vpp)); +extern int umapfs_start __P((struct mount *mp, int flags, struct proc *p)); +extern int umapfs_statfs __P((struct mount *mp, struct statfs *sbp, + struct proc *p)); +extern int umapfs_sync __P((struct mount *mp, int waitfor, + struct ucred *cred, struct proc *p)); +extern int umapfs_unmount __P((struct mount *mp, int mntflags, + struct proc *p)); +extern int umapfs_vget __P((struct mount *mp, ino_t ino, + struct vnode **vpp)); +extern int umapfs_vptofh __P((struct vnode *vp, struct fid *fhp)); + /* * Mount umap layer */ @@ -393,8 +414,6 @@ umapfs_vptofh(vp, fhp) return (VFS_VPTOFH(UMAPVPTOLOWERVP(vp), fhp)); } -int umapfs_init __P((void)); - struct vfsops umap_vfsops = { umapfs_mount, umapfs_start, diff --git a/sys/fs/umapfs/umap_vnops.c b/sys/fs/umapfs/umap_vnops.c index 1d2d586..8ab0e79 100644 --- a/sys/fs/umapfs/umap_vnops.c +++ b/sys/fs/umapfs/umap_vnops.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)umap_vnops.c 8.3 (Berkeley) 1/5/94 - * $Id: umap_vnops.c,v 1.9 1995/05/30 08:07:22 rgrimes Exp $ + * $Id: umap_vnops.c,v 1.10 1995/11/09 08:16:25 bde Exp $ */ /* @@ -53,9 +53,17 @@ #include <sys/buf.h> #include <miscfs/umapfs/umap.h> - int umap_bug_bypass = 0; /* for debugging: enables bypass printf'ing */ +extern int umap_bwrite __P((struct vop_bwrite_args *ap)); +extern int umap_bypass __P((struct vop_generic_args *ap)); +extern int umap_getattr __P((struct vop_getattr_args *ap)); +extern int umap_inactive __P((struct vop_inactive_args *ap)); +extern int umap_print __P((struct vop_print_args *ap)); +extern int umap_reclaim __P((struct vop_reclaim_args *ap)); +extern int umap_rename __P((struct vop_rename_args *ap)); +extern int umap_strategy __P((struct vop_strategy_args *ap)); + /* * This is the 10-Apr-92 bypass routine. * See null_vnops.c:null_bypass for more details. |