xref: /csrg-svn/sys/ufs/lfs/lfs_extern.h (revision 51349)
1 /*-
2  * Copyright (c) 1991 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)lfs_extern.h	5.3 (Berkeley) 10/09/91
8  */
9 
10 struct fid;
11 struct inode;
12 struct mount;
13 struct nameidata;
14 struct statfs;
15 struct proc;
16 struct ucred;
17 struct vnode;
18 
19 daddr_t	 itod __P((LFS *, ino_t));
20 int	 lfs_balloc __P((LFS *, VNODE *, daddr_t, int, BUF **));
21 int	 lfs_bmap __P((struct inode *, daddr_t, daddr_t *));
22 void	 lfs_bwrite __P((struct buf *));
23 void	 lfs_cleaner __P((void));
24 int	 lfs_fhtovp __P((struct mount *, struct fid *, struct vnode **));
25 u_long	 lfs_getversion __P((LFS *fs, ino_t));
26 void	 lfs_hqueue __P((INODE *));
27 ino_t	 lfs_ialloc __P((LFS *, struct inode *, struct inode **,
28 	     struct ucred *));
29 IFILE	*lfs_ientry __P((LFS *, ino_t));
30 struct dinode *
31 	 lfs_ifind __P((LFS *, ino_t, void *));
32 void	 lfs_ifree __P((struct inode *));
33 int	 lfs_inactive __P((struct vnode *, struct proc *));
34 int	 lfs_init __P((void));
35 void	 lfs_iset __P((INODE *, daddr_t, time_t));
36 int	 lfs_lookup __P((struct vnode *, struct nameidata *, struct proc *));
37 int	 lfs_mount __P((struct mount *, char *, caddr_t, struct nameidata *,
38 	     struct proc *));
39 int	 lfs_root __P((struct mount *, struct vnode **));
40 int	 lfs_segwrite __P((MOUNT *, int));
41 int	 lfs_statfs __P((struct mount *, struct statfs *, struct proc *));
42 int	 lfs_sync __P((struct mount *, int));
43 int	 lfs_unmount __P((struct mount *, int, struct proc *));
44 int	 lfs_vcreate __P((struct mount *, ino_t, struct vnode **));
45 
46 #ifdef DEBUG
47 void	dump_super __P((LFS *));
48 void	dump_dinode __P((struct dinode *));
49 void	lfs_print_inumber __P((struct vnode *));
50 void	lfs_spin __P((void));
51 #endif
52 
53 extern struct vnodeops lfs_vnodeops;
54