151187Sbostic /*- 251187Sbostic * Copyright (c) 1991 The Regents of the University of California. 351187Sbostic * All rights reserved. 451187Sbostic * 551187Sbostic * %sccs.include.redist.c% 651187Sbostic * 7*53562Sheideman * @(#)lfs_extern.h 7.15 (Berkeley) 05/14/92 851187Sbostic */ 951187Sbostic 1051187Sbostic struct fid; 1151563Smckusick struct mount; 1251215Sbostic struct nameidata; 1351859Sbostic struct proc; 1451187Sbostic struct statfs; 1551859Sbostic struct timeval; 1653233Smckusick struct inode; 1751859Sbostic struct uio; 1851187Sbostic 1951489Sbostic __BEGIN_DECLS 2051489Sbostic u_long cksum __P((void *, size_t)); /* XXX */ 2152084Sbostic int lfs_balloc __P((struct vnode *, u_long, daddr_t, struct buf **)); 22*53562Sheideman int lfs_blkatoff __P((struct vop_blkatoff_args *)); 23*53562Sheideman int lfs_bmap __P((struct vop_bmap_args *)); 2453146Sbostic int lfs_bmaparray 2553146Sbostic __P((struct vnode *, daddr_t, daddr_t *, INDIR *, int *)); 26*53562Sheideman int lfs_bwrite __P((struct vop_bwrite_args *)); 2752174Smckusick int lfs_fhtovp __P((struct mount *, struct fid *, int, struct vnode **)); 28*53562Sheideman int lfs_fsync __P((struct vop_fsync_args *)); 29*53562Sheideman int lfs_inactive __P((struct vop_inactive_args *)); 3051187Sbostic int lfs_init __P((void)); 3151489Sbostic int lfs_makeinode __P((int, struct nameidata *, struct inode **)); 3253146Sbostic int lfs_mount __P((struct mount *, 3353146Sbostic char *, caddr_t, struct nameidata *, struct proc *)); 3451489Sbostic int lfs_mountroot __P((void)); 35*53562Sheideman int lfs_read __P((struct vop_read_args *)); 3651563Smckusick int lfs_root __P((struct mount *, struct vnode **)); 3753146Sbostic int lfs_segwrite __P((struct mount *, int)); 3853146Sbostic int lfs_statfs __P((struct mount *, struct statfs *, struct proc *)); 3953146Sbostic int lfs_sync __P((struct mount *, int)); 40*53562Sheideman int lfs_truncate __P((struct vop_truncate_args *)); 4153146Sbostic int lfs_unmount __P((struct mount *, int, struct proc *)); 42*53562Sheideman int lfs_update __P((struct vop_update_args *)); 43*53562Sheideman int lfs_valloc __P((struct vop_valloc_args *)); 4453146Sbostic int lfs_vcreate __P((struct mount *, ino_t, struct vnode **)); 45*53562Sheideman void lfs_vfree __P((struct vop_vfree_args *)); 4652326Sbostic int lfs_vflush __P((struct vnode *)); 47*53562Sheideman int lfs_vget __P((struct vop_vget_args *)); 4851563Smckusick int lfs_vptofh __P((struct vnode *, struct fid *)); 49*53562Sheideman int lfs_write __P((struct vop_write_args *)); 5051187Sbostic #ifdef DEBUG 5153146Sbostic void lfs_dump_dinode __P((struct dinode *)); 5251497Sbostic void lfs_dump_super __P((struct lfs *)); 5351489Sbostic int lfs_umountdebug __P((struct mount *)); 5451489Sbostic int lfs_vinvalbuf __P((struct vnode *)); 5551187Sbostic #endif 5651489Sbostic __END_DECLS 5751595Smckusick extern struct vnodeops lfs_vnodeops, lfs_specops; 5851595Smckusick #ifdef FIFO 59*53562Sheideman extern int (**lfs_fifoop_p)(); 6053509Sheideman #define LFS_FIFOOPS lfs_fifoop_p 6151595Smckusick #else 6251595Smckusick #define LFS_FIFOOPS NULL 6351595Smckusick #endif 64