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