xref: /csrg-svn/sys/ufs/lfs/lfs_extern.h (revision 51215)
151187Sbostic /*-
251187Sbostic  * Copyright (c) 1991 The Regents of the University of California.
351187Sbostic  * All rights reserved.
451187Sbostic  *
551187Sbostic  * %sccs.include.redist.c%
651187Sbostic  *
7*51215Sbostic  *	@(#)lfs_extern.h	5.2 (Berkeley) 10/02/91
851187Sbostic  */
951187Sbostic 
1051187Sbostic struct fid;
1151187Sbostic struct inode;
1251187Sbostic struct mount;
13*51215Sbostic struct nameidata;
1451187Sbostic struct statfs;
1551187Sbostic struct proc;
1651187Sbostic struct ucred;
1751187Sbostic struct vnode;
1851187Sbostic 
1951187Sbostic daddr_t	 itod __P((LFS *, ino_t));
2051187Sbostic int	 lfs_balloc __P((LFS *, VNODE *, daddr_t, int, BUF **));
2151187Sbostic int	 lfs_bmap __P((struct inode *, daddr_t, daddr_t *));
2251187Sbostic void	 lfs_bwrite __P((struct buf *));
23*51215Sbostic void	 lfs_cleaner __P((void));
2451187Sbostic int	 lfs_fhtovp __P((struct mount *, struct fid *, struct vnode **));
2551187Sbostic u_long	 lfs_getversion __P((LFS *fs, ino_t));
2651187Sbostic ino_t	 lfs_ialloc __P((LFS *, struct inode *, struct inode **,
2751187Sbostic 	     struct ucred *));
2851187Sbostic IFILE	*lfs_ientry __P((LFS *, ino_t));
2951187Sbostic struct dinode *
3051187Sbostic 	 lfs_ifind __P((LFS *, ino_t, void *));
3151187Sbostic void	 lfs_ifree __P((struct inode *));
3251187Sbostic int	 lfs_inactive __P((struct vnode *, struct proc *));
3351187Sbostic int	 lfs_init __P((void));
34*51215Sbostic void	 lfs_iset __P((INODE *, daddr_t, time_t));
3551187Sbostic int	 lfs_lookup __P((struct vnode *, struct nameidata *, struct proc *));
3651187Sbostic int	 lfs_mount __P((struct mount *, char *, caddr_t, struct nameidata *, struct proc *));
3751187Sbostic int	 lfs_root __P((struct mount *, struct vnode **));
38*51215Sbostic int	 lfs_segwrite __P((MOUNT *, int));
3951187Sbostic int	 lfs_statfs __P((struct mount *, struct statfs *, struct proc *));
4051187Sbostic int	 lfs_sync __P((struct mount *, int));
4151187Sbostic int	 lfs_unmount __P((struct mount *, int, struct proc *));
4251187Sbostic int	 lfs_vcreate __P((struct mount *, ino_t, struct vnode **));
4351187Sbostic 
4451187Sbostic #ifdef DEBUG
4551187Sbostic void	dump_super __P((LFS *));
4651187Sbostic void	dump_dinode __P((struct dinode *));
4751187Sbostic void	lfs_print_inumber __P((struct vnode *));
48*51215Sbostic void	lfs_spin __P((void));
4951187Sbostic #endif
5051187Sbostic 
5151187Sbostic extern struct vnodeops lfs_vnodeops;
52