151187Sbostic /*- 251187Sbostic * Copyright (c) 1991 The Regents of the University of California. 351187Sbostic * All rights reserved. 451187Sbostic * 551187Sbostic * %sccs.include.redist.c% 651187Sbostic * 7*51595Smckusick * @(#)lfs_extern.h 7.3 (Berkeley) 11/08/91 851187Sbostic */ 951187Sbostic 1051187Sbostic struct fid; 1151563Smckusick struct mount; 1251215Sbostic struct nameidata; 1351187Sbostic struct statfs; 1451187Sbostic struct proc; 1551187Sbostic 1651489Sbostic __BEGIN_DECLS 1751489Sbostic u_long cksum __P((void *, size_t)); /* XXX */ 1851563Smckusick int lfs_blkatoff __P((struct vnode *, off_t, char **, struct buf **)); 1951563Smckusick int lfs_bmap __P((VNODE *, daddr_t, VNODE **, daddr_t *)); 2051489Sbostic int lfs_bwrite __P((BUF *)); 2151563Smckusick int lfs_fhtovp __P((struct mount *, struct fid *, struct vnode **)); 2251489Sbostic int lfs_fsync 2351489Sbostic __P((struct vnode *, int, struct ucred *, int, struct proc *)); 2451497Sbostic u_long lfs_getversion __P((struct lfs *fs, ino_t)); 2551497Sbostic DINODE *lfs_ifind __P((struct lfs *, ino_t, void *)); 2651489Sbostic int lfs_inactive __P((VNODE *, struct proc *)); 2751187Sbostic int lfs_init __P((void)); 2851215Sbostic void lfs_iset __P((INODE *, daddr_t, time_t)); 2951497Sbostic daddr_t lfs_itod __P((struct lfs *, ino_t)); 3051489Sbostic int lfs_makeinode __P((int, struct nameidata *, struct inode **)); 3151489Sbostic int lfs_mount 3251489Sbostic __P((MOUNT *, char *, caddr_t, struct nameidata *, struct proc *)); 3351489Sbostic int lfs_mountroot __P((void)); 3451489Sbostic int lfs_read __P((struct vnode *, struct uio *, int, struct ucred *)); 3551563Smckusick int lfs_root __P((struct mount *, struct vnode **)); 3651215Sbostic int lfs_segwrite __P((MOUNT *, int)); 3751489Sbostic int lfs_statfs __P((MOUNT *, struct statfs *, struct proc *)); 3851489Sbostic int lfs_sync __P((MOUNT *, int)); 3951563Smckusick int lfs_truncate __P((VNODE *, u_long, int)); 4051489Sbostic int lfs_unmount __P((MOUNT *, int, struct proc *)); 4151563Smckusick int lfs_update 4251563Smckusick __P((struct vnode *, struct timeval *, struct timeval *, int)); 4351563Smckusick int lfs_valloc __P((VNODE *, int, UCRED *, VNODE **)); 4451489Sbostic int lfs_vcreate __P((MOUNT *, ino_t, VNODE **)); 4551563Smckusick void lfs_vfree __P((VNODE *, ino_t, int)); 4651563Smckusick int lfs_vget __P((struct mount *, ino_t, VNODE **)); 4751563Smckusick int lfs_vptofh __P((struct vnode *, struct fid *)); 4851489Sbostic int lfs_write __P((struct vnode *, struct uio *, int, struct ucred *)); 4951187Sbostic 5051187Sbostic #ifdef DEBUG 5151489Sbostic void lfs_dump_dinode __P((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 57*51595Smckusick extern struct vnodeops lfs_vnodeops, lfs_specops; 58*51595Smckusick #ifdef FIFO 59*51595Smckusick extern struct vnodeops lfs_fifoops; 60*51595Smckusick #define LFS_FIFOOPS &lfs_fifoops 61*51595Smckusick #else 62*51595Smckusick #define LFS_FIFOOPS NULL 63*51595Smckusick #endif 64