151187Sbostic /*- 251187Sbostic * Copyright (c) 1991 The Regents of the University of California. 351187Sbostic * All rights reserved. 451187Sbostic * 551187Sbostic * %sccs.include.redist.c% 651187Sbostic * 7*54689Sbostic * @(#)lfs_extern.h 7.18 (Berkeley) 07/05/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 **)); 2253562Sheideman int lfs_blkatoff __P((struct vop_blkatoff_args *)); 2353562Sheideman int lfs_bmap __P((struct vop_bmap_args *)); 2453146Sbostic int lfs_bmaparray 2553146Sbostic __P((struct vnode *, daddr_t, daddr_t *, INDIR *, int *)); 2653562Sheideman int lfs_bwrite __P((struct vop_bwrite_args *)); 2754264Sbostic int lfs_create __P((struct vop_create_args *)); 28*54689Sbostic int lfs_fhtovp __P((struct mount *, struct fid *, struct vnode **)); 2953562Sheideman int lfs_fsync __P((struct vop_fsync_args *)); 30*54689Sbostic struct dinode * 31*54689Sbostic lfs_ifind __P((struct lfs *, ino_t, struct dinode *)); 3253562Sheideman int lfs_inactive __P((struct vop_inactive_args *)); 3351187Sbostic int lfs_init __P((void)); 3454264Sbostic int lfs_link __P((struct vop_link_args *)); 3551489Sbostic int lfs_makeinode __P((int, struct nameidata *, struct inode **)); 3654264Sbostic int lfs_mkdir __P((struct vop_mkdir_args *)); 3754264Sbostic int lfs_mknod __P((struct vop_mknod_args *)); 3853146Sbostic int lfs_mount __P((struct mount *, 3953146Sbostic char *, caddr_t, struct nameidata *, struct proc *)); 4051489Sbostic int lfs_mountroot __P((void)); 4153562Sheideman int lfs_read __P((struct vop_read_args *)); 4254264Sbostic int lfs_remove __P((struct vop_remove_args *)); 4354264Sbostic int lfs_rmdir __P((struct vop_rmdir_args *)); 4454264Sbostic int lfs_rename __P((struct vop_rename_args *)); 4551563Smckusick int lfs_root __P((struct mount *, struct vnode **)); 46*54689Sbostic void lfs_seglock __P((struct lfs *)); 47*54689Sbostic void lfs_segunlock __P((struct lfs *)); 4853146Sbostic int lfs_segwrite __P((struct mount *, int)); 4953146Sbostic int lfs_statfs __P((struct mount *, struct statfs *, struct proc *)); 5054264Sbostic int lfs_symlink __P((struct vop_symlink_args *)); 51*54689Sbostic int lfs_sync __P((struct mount *, int, struct ucred *, struct proc *)); 5253562Sheideman int lfs_truncate __P((struct vop_truncate_args *)); 5353146Sbostic int lfs_unmount __P((struct mount *, int, struct proc *)); 5453562Sheideman int lfs_update __P((struct vop_update_args *)); 5553562Sheideman int lfs_valloc __P((struct vop_valloc_args *)); 5653146Sbostic int lfs_vcreate __P((struct mount *, ino_t, struct vnode **)); 5753573Sheideman int lfs_vfree __P((struct vop_vfree_args *)); 5852326Sbostic int lfs_vflush __P((struct vnode *)); 59*54689Sbostic int lfs_vget __P((struct mount *, ino_t, struct vnode **)); 6051563Smckusick int lfs_vptofh __P((struct vnode *, struct fid *)); 6153562Sheideman int lfs_write __P((struct vop_write_args *)); 6251187Sbostic #ifdef DEBUG 6353146Sbostic void lfs_dump_dinode __P((struct dinode *)); 6451497Sbostic void lfs_dump_super __P((struct lfs *)); 6551187Sbostic #endif 6651489Sbostic __END_DECLS 6753573Sheideman extern int (**lfs_vnodeop_p)(); 6853573Sheideman extern int (**lfs_specop_p)(); 6951595Smckusick #ifdef FIFO 7053562Sheideman extern int (**lfs_fifoop_p)(); 7153509Sheideman #define LFS_FIFOOPS lfs_fifoop_p 7251595Smckusick #else 7351595Smckusick #define LFS_FIFOOPS NULL 7451595Smckusick #endif 75