151187Sbostic /*- 251187Sbostic * Copyright (c) 1991 The Regents of the University of California. 351187Sbostic * All rights reserved. 451187Sbostic * 551187Sbostic * %sccs.include.redist.c% 651187Sbostic * 7*52174Smckusick * @(#)lfs_extern.h 7.7 (Berkeley) 01/10/92 851187Sbostic */ 951187Sbostic 1051187Sbostic struct fid; 1151563Smckusick struct mount; 1251215Sbostic struct nameidata; 1351859Sbostic struct proc; 1451187Sbostic struct statfs; 1551859Sbostic struct timeval; 1651859Sbostic struct uio; 1751187Sbostic 1851489Sbostic __BEGIN_DECLS 1951489Sbostic u_long cksum __P((void *, size_t)); /* XXX */ 2052084Sbostic int lfs_balloc __P((struct vnode *, u_long, daddr_t, struct buf **)); 2151563Smckusick int lfs_blkatoff __P((struct vnode *, off_t, char **, struct buf **)); 2251563Smckusick int lfs_bmap __P((VNODE *, daddr_t, VNODE **, daddr_t *)); 2351859Sbostic int lfs_bmaparray __P((VNODE *, daddr_t, daddr_t *, INDIR *, int *)); 2451489Sbostic int lfs_bwrite __P((BUF *)); 25*52174Smckusick int lfs_fhtovp __P((struct mount *, struct fid *, int, struct vnode **)); 2651489Sbostic int lfs_fsync 2751489Sbostic __P((struct vnode *, int, struct ucred *, int, struct proc *)); 2851497Sbostic DINODE *lfs_ifind __P((struct lfs *, ino_t, void *)); 2951489Sbostic int lfs_inactive __P((VNODE *, struct proc *)); 3051187Sbostic int lfs_init __P((void)); 3151497Sbostic daddr_t lfs_itod __P((struct lfs *, ino_t)); 3251489Sbostic int lfs_makeinode __P((int, struct nameidata *, struct inode **)); 3351489Sbostic int lfs_mount 3451489Sbostic __P((MOUNT *, 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 **)); 3851215Sbostic int lfs_segwrite __P((MOUNT *, int)); 3951489Sbostic int lfs_statfs __P((MOUNT *, struct statfs *, struct proc *)); 4051489Sbostic int lfs_sync __P((MOUNT *, int)); 4151563Smckusick int lfs_truncate __P((VNODE *, u_long, int)); 4251489Sbostic int lfs_unmount __P((MOUNT *, int, struct proc *)); 4351563Smckusick int lfs_update 4451563Smckusick __P((struct vnode *, struct timeval *, struct timeval *, int)); 4551563Smckusick int lfs_valloc __P((VNODE *, int, UCRED *, VNODE **)); 4651489Sbostic int lfs_vcreate __P((MOUNT *, ino_t, VNODE **)); 4751563Smckusick void lfs_vfree __P((VNODE *, ino_t, int)); 4851563Smckusick int lfs_vget __P((struct mount *, ino_t, VNODE **)); 4951563Smckusick int lfs_vptofh __P((struct vnode *, struct fid *)); 5051489Sbostic int lfs_write __P((struct vnode *, struct uio *, int, struct ucred *)); 5151187Sbostic #ifdef DEBUG 5251489Sbostic void lfs_dump_dinode __P((DINODE *)); 5351497Sbostic void lfs_dump_super __P((struct lfs *)); 5451489Sbostic int lfs_umountdebug __P((struct mount *)); 5551489Sbostic int lfs_vinvalbuf __P((struct vnode *)); 5651187Sbostic #endif 5751489Sbostic __END_DECLS 5851595Smckusick extern struct vnodeops lfs_vnodeops, lfs_specops; 5951595Smckusick #ifdef FIFO 6051595Smckusick extern struct vnodeops lfs_fifoops; 6151595Smckusick #define LFS_FIFOOPS &lfs_fifoops 6251595Smckusick #else 6351595Smckusick #define LFS_FIFOOPS NULL 6451595Smckusick #endif 65