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.2 (Berkeley) 10/02/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 ino_t lfs_ialloc __P((LFS *, struct inode *, struct inode **, 27 struct ucred *)); 28 IFILE *lfs_ientry __P((LFS *, ino_t)); 29 struct dinode * 30 lfs_ifind __P((LFS *, ino_t, void *)); 31 void lfs_ifree __P((struct inode *)); 32 int lfs_inactive __P((struct vnode *, struct proc *)); 33 int lfs_init __P((void)); 34 void lfs_iset __P((INODE *, daddr_t, time_t)); 35 int lfs_lookup __P((struct vnode *, struct nameidata *, struct proc *)); 36 int lfs_mount __P((struct mount *, char *, caddr_t, struct nameidata *, struct proc *)); 37 int lfs_root __P((struct mount *, struct vnode **)); 38 int lfs_segwrite __P((MOUNT *, int)); 39 int lfs_statfs __P((struct mount *, struct statfs *, struct proc *)); 40 int lfs_sync __P((struct mount *, int)); 41 int lfs_unmount __P((struct mount *, int, struct proc *)); 42 int lfs_vcreate __P((struct mount *, ino_t, struct vnode **)); 43 44 #ifdef DEBUG 45 void dump_super __P((LFS *)); 46 void dump_dinode __P((struct dinode *)); 47 void lfs_print_inumber __P((struct vnode *)); 48 void lfs_spin __P((void)); 49 #endif 50 51 extern struct vnodeops lfs_vnodeops; 52