ffs_extern.h (100925) | ffs_extern.h (101777) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)ffs_extern.h 8.6 (Berkeley) 3/30/95 | 1/*- 2 * Copyright (c) 1991, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)ffs_extern.h 8.6 (Berkeley) 3/30/95 |
34 * $FreeBSD: head/sys/ufs/ffs/ffs_extern.h 100925 2002-07-30 11:54:48Z phk $ | 34 * $FreeBSD: head/sys/ufs/ffs/ffs_extern.h 101777 2002-08-13 10:05:50Z phk $ |
35 */ 36 37#ifndef _UFS_FFS_EXTERN_H 38#define _UFS_FFS_EXTERN_H 39 40struct buf; 41struct cg; 42struct fid; --- 17 unchanged lines hidden (view full) --- 60int ffs_balloc_ufs2(struct vnode *a_vp, off_t a_startoffset, int a_size, 61 struct ucred *a_cred, int a_flags, struct buf **a_bpp); 62int ffs_blkatoff(struct vnode *, off_t, char **, struct buf **); 63void ffs_blkfree(struct fs *, struct vnode *, ufs2_daddr_t, long, ino_t); 64ufs2_daddr_t ffs_blkpref_ufs1(struct inode *, ufs_lbn_t, int, ufs1_daddr_t *); 65ufs2_daddr_t ffs_blkpref_ufs2(struct inode *, ufs_lbn_t, int, ufs2_daddr_t *); 66void ffs_clrblock(struct fs *, u_char *, ufs1_daddr_t); 67void ffs_clusteracct (struct fs *, struct cg *, ufs1_daddr_t, int); | 35 */ 36 37#ifndef _UFS_FFS_EXTERN_H 38#define _UFS_FFS_EXTERN_H 39 40struct buf; 41struct cg; 42struct fid; --- 17 unchanged lines hidden (view full) --- 60int ffs_balloc_ufs2(struct vnode *a_vp, off_t a_startoffset, int a_size, 61 struct ucred *a_cred, int a_flags, struct buf **a_bpp); 62int ffs_blkatoff(struct vnode *, off_t, char **, struct buf **); 63void ffs_blkfree(struct fs *, struct vnode *, ufs2_daddr_t, long, ino_t); 64ufs2_daddr_t ffs_blkpref_ufs1(struct inode *, ufs_lbn_t, int, ufs1_daddr_t *); 65ufs2_daddr_t ffs_blkpref_ufs2(struct inode *, ufs_lbn_t, int, ufs2_daddr_t *); 66void ffs_clrblock(struct fs *, u_char *, ufs1_daddr_t); 67void ffs_clusteracct (struct fs *, struct cg *, ufs1_daddr_t, int); |
68int ffs_fhtovp(struct mount *, struct fid *, struct vnode **); | 68vfs_fhtovp_t ffs_fhtovp; |
69int ffs_flushfiles(struct mount *, int, struct thread *); 70void ffs_fragacct(struct fs *, int, int32_t [], int); 71int ffs_freefile(struct fs *, struct vnode *, ino_t, int ); 72int ffs_isblock(struct fs *, u_char *, ufs1_daddr_t); 73void ffs_load_inode(struct buf *, struct inode *, struct malloc_type *, 74 struct fs *, ino_t); 75int ffs_mountfs(struct vnode *, struct mount *, struct thread *, 76 struct malloc_type *); 77int ffs_mountroot(void); | 69int ffs_flushfiles(struct mount *, int, struct thread *); 70void ffs_fragacct(struct fs *, int, int32_t [], int); 71int ffs_freefile(struct fs *, struct vnode *, ino_t, int ); 72int ffs_isblock(struct fs *, u_char *, ufs1_daddr_t); 73void ffs_load_inode(struct buf *, struct inode *, struct malloc_type *, 74 struct fs *, ino_t); 75int ffs_mountfs(struct vnode *, struct mount *, struct thread *, 76 struct malloc_type *); 77int ffs_mountroot(void); |
78int ffs_mount(struct mount *, char *, caddr_t, struct nameidata *, 79 struct thread *); | 78vfs_mount_t ffs_mount; |
80int ffs_reallocblks(struct vop_reallocblks_args *); 81int ffs_realloccg(struct inode *, ufs2_daddr_t, ufs2_daddr_t, 82 ufs2_daddr_t, int, int, struct ucred *, struct buf **); 83void ffs_setblock(struct fs *, u_char *, ufs1_daddr_t); 84int ffs_snapblkfree(struct fs *, struct vnode *, ufs2_daddr_t, long, ino_t); 85void ffs_snapremove(struct vnode *vp); 86int ffs_snapshot(struct mount *mp, char *snapfile); 87void ffs_snapshot_mount(struct mount *mp); 88void ffs_snapshot_unmount(struct mount *mp); | 79int ffs_reallocblks(struct vop_reallocblks_args *); 80int ffs_realloccg(struct inode *, ufs2_daddr_t, ufs2_daddr_t, 81 ufs2_daddr_t, int, int, struct ucred *, struct buf **); 82void ffs_setblock(struct fs *, u_char *, ufs1_daddr_t); 83int ffs_snapblkfree(struct fs *, struct vnode *, ufs2_daddr_t, long, ino_t); 84void ffs_snapremove(struct vnode *vp); 85int ffs_snapshot(struct mount *mp, char *snapfile); 86void ffs_snapshot_mount(struct mount *mp); 87void ffs_snapshot_unmount(struct mount *mp); |
89int ffs_statfs(struct mount *, struct statfs *, struct thread *); 90int ffs_sync(struct mount *, int, struct ucred *, struct thread *); | 88vfs_statfs_t ffs_statfs; 89vfs_sync_t ffs_sync; |
91int ffs_truncate(struct vnode *, off_t, int, struct ucred *, struct thread *); | 90int ffs_truncate(struct vnode *, off_t, int, struct ucred *, struct thread *); |
92int ffs_unmount(struct mount *, int, struct thread *); | 91vfs_unmount_t ffs_unmount; |
93int ffs_update(struct vnode *, int); 94int ffs_valloc(struct vnode *, int, struct ucred *, struct vnode **); 95 96int ffs_vfree(struct vnode *, ino_t, int); | 92int ffs_update(struct vnode *, int); 93int ffs_valloc(struct vnode *, int, struct ucred *, struct vnode **); 94 95int ffs_vfree(struct vnode *, ino_t, int); |
97int ffs_vget(struct mount *, ino_t, int, struct vnode **); 98int ffs_vptofh(struct vnode *, struct fid *); | 96vfs_vget_t ffs_vget; 97vfs_vptofh_t ffs_vptofh; |
99 100extern vop_t **ffs_vnodeop_p; 101extern vop_t **ffs_specop_p; 102extern vop_t **ffs_fifoop_p; 103 104/* 105 * Soft update function prototypes. 106 */ --- 29 unchanged lines hidden --- | 98 99extern vop_t **ffs_vnodeop_p; 100extern vop_t **ffs_specop_p; 101extern vop_t **ffs_fifoop_p; 102 103/* 104 * Soft update function prototypes. 105 */ --- 29 unchanged lines hidden --- |