151187Sbostic /*- 251187Sbostic * Copyright (c) 1991 The Regents of the University of California. 351187Sbostic * All rights reserved. 451187Sbostic * 551187Sbostic * %sccs.include.redist.c% 651187Sbostic * 7*53233Smckusick * @(#)lfs_extern.h 7.12 (Berkeley) 04/21/92 851187Sbostic */ 951187Sbostic 1051187Sbostic struct fid; 1151563Smckusick struct mount; 1251215Sbostic struct nameidata; 1351859Sbostic struct proc; 1451187Sbostic struct statfs; 1551859Sbostic struct timeval; 16*53233Smckusick 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 **)); 2251563Smckusick int lfs_blkatoff __P((struct vnode *, off_t, char **, struct buf **)); 2353146Sbostic int lfs_bmap __P((struct vnode *, daddr_t, struct vnode **, daddr_t *)); 2453146Sbostic int lfs_bmaparray 2553146Sbostic __P((struct vnode *, daddr_t, daddr_t *, INDIR *, int *)); 2653146Sbostic int lfs_bwrite __P((struct buf *)); 2752174Smckusick int lfs_fhtovp __P((struct mount *, struct fid *, int, struct vnode **)); 2851489Sbostic int lfs_fsync 2951489Sbostic __P((struct vnode *, int, struct ucred *, int, struct proc *)); 3053146Sbostic int lfs_inactive __P((struct vnode *, struct proc *)); 3151187Sbostic int lfs_init __P((void)); 3251489Sbostic int lfs_makeinode __P((int, struct nameidata *, struct inode **)); 3353146Sbostic int lfs_mount __P((struct mount *, 3453146Sbostic char *, caddr_t, struct nameidata *, struct proc *)); 3551489Sbostic int lfs_mountroot __P((void)); 3651489Sbostic int lfs_read __P((struct vnode *, struct uio *, int, struct ucred *)); 3751563Smckusick int lfs_root __P((struct mount *, struct vnode **)); 3853146Sbostic int lfs_segwrite __P((struct mount *, int)); 3953146Sbostic int lfs_statfs __P((struct mount *, struct statfs *, struct proc *)); 4053146Sbostic int lfs_sync __P((struct mount *, int)); 41*53233Smckusick int lfs_truncate __P((struct vnode *, off_t, int)); 4253146Sbostic int lfs_unmount __P((struct mount *, int, struct proc *)); 4351563Smckusick int lfs_update 4451563Smckusick __P((struct vnode *, struct timeval *, struct timeval *, int)); 4553146Sbostic int lfs_valloc __P((struct vnode *, int, struct ucred *, struct vnode **)); 4653146Sbostic int lfs_vcreate __P((struct mount *, ino_t, struct vnode **)); 4753146Sbostic void lfs_vfree __P((struct vnode *, ino_t, int)); 4852326Sbostic int lfs_vflush __P((struct vnode *)); 4953146Sbostic int lfs_vget __P((struct mount *, ino_t, struct vnode **)); 5051563Smckusick int lfs_vptofh __P((struct vnode *, struct fid *)); 5151489Sbostic int lfs_write __P((struct vnode *, struct uio *, int, struct ucred *)); 5251187Sbostic #ifdef DEBUG 5353146Sbostic void lfs_dump_dinode __P((struct dinode *)); 5451497Sbostic void lfs_dump_super __P((struct lfs *)); 5551489Sbostic int lfs_umountdebug __P((struct mount *)); 5651489Sbostic int lfs_vinvalbuf __P((struct vnode *)); 5751187Sbostic #endif 5851489Sbostic __END_DECLS 5951595Smckusick extern struct vnodeops lfs_vnodeops, lfs_specops; 6051595Smckusick #ifdef FIFO 6151595Smckusick extern struct vnodeops lfs_fifoops; 6251595Smckusick #define LFS_FIFOOPS &lfs_fifoops 6351595Smckusick #else 6451595Smckusick #define LFS_FIFOOPS NULL 6551595Smckusick #endif 66