151187Sbostic /*- 251187Sbostic * Copyright (c) 1991 The Regents of the University of California. 351187Sbostic * All rights reserved. 451187Sbostic * 551187Sbostic * %sccs.include.redist.c% 651187Sbostic * 7*51497Sbostic * @(#)lfs_extern.h 7.1 (Berkeley) 11/01/91 851187Sbostic */ 951187Sbostic 1051187Sbostic struct fid; 1151215Sbostic struct nameidata; 1251187Sbostic struct statfs; 1351187Sbostic struct proc; 1451187Sbostic 1551489Sbostic __BEGIN_DECLS 1651489Sbostic u_long cksum __P((void *, size_t)); /* XXX */ 1751489Sbostic int lfs_blkatoff __P((struct inode *, off_t, char **, struct buf **)); 1851489Sbostic int lfs_bmap __P((INODE *, daddr_t, daddr_t *)); 1951489Sbostic int lfs_bwrite __P((BUF *)); 2051489Sbostic int lfs_fsync 2151489Sbostic __P((struct vnode *, int, struct ucred *, int, struct proc *)); 22*51497Sbostic u_long lfs_getversion __P((struct lfs *fs, ino_t)); 2351489Sbostic int lfs_ialloc __P((INODE *, int, UCRED *, INODE **)); 24*51497Sbostic DINODE *lfs_ifind __P((struct lfs *, ino_t, void *)); 2551489Sbostic void lfs_ifree __P((INODE *, ino_t, int)); 2651489Sbostic int lfs_iget __P((INODE *, ino_t, INODE **)); 2751489Sbostic int lfs_inactive __P((VNODE *, struct proc *)); 2851187Sbostic int lfs_init __P((void)); 2951215Sbostic void lfs_iset __P((INODE *, daddr_t, time_t)); 30*51497Sbostic daddr_t lfs_itod __P((struct lfs *, ino_t)); 3151489Sbostic int lfs_itrunc __P((INODE *, u_long, int)); 3251489Sbostic int lfs_iupdat 3351489Sbostic __P((struct inode *, struct timeval *, struct timeval *, int)); 3451489Sbostic int lfs_makeinode __P((int, struct nameidata *, struct inode **)); 3551489Sbostic int lfs_mount 3651489Sbostic __P((MOUNT *, char *, caddr_t, struct nameidata *, struct proc *)); 3751489Sbostic int lfs_mountroot __P((void)); 3851489Sbostic int lfs_read __P((struct vnode *, struct uio *, int, struct ucred *)); 3951215Sbostic int lfs_segwrite __P((MOUNT *, int)); 4051489Sbostic int lfs_statfs __P((MOUNT *, struct statfs *, struct proc *)); 4151489Sbostic int lfs_sync __P((MOUNT *, int)); 4251489Sbostic int lfs_unmount __P((MOUNT *, int, struct proc *)); 4351489Sbostic int lfs_vcreate __P((MOUNT *, ino_t, VNODE **)); 4451489Sbostic int lfs_write __P((struct vnode *, struct uio *, int, struct ucred *)); 4551187Sbostic 4651187Sbostic #ifdef DEBUG 4751489Sbostic void lfs_dump_dinode __P((DINODE *)); 48*51497Sbostic void lfs_dump_super __P((struct lfs *)); 4951489Sbostic int lfs_umountdebug __P((struct mount *)); 5051489Sbostic int lfs_vinvalbuf __P((struct vnode *)); 5151187Sbostic #endif 5251489Sbostic __END_DECLS 5351187Sbostic 5451187Sbostic extern struct vnodeops lfs_vnodeops; 55