Deleted Added
full compact
ext2_extern.h (83366) ext2_extern.h (92728)
1/*
2 * modified for EXT2FS support in Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 */
7/*-
8 * Copyright (c) 1991, 1993, 1994

--- 23 unchanged lines hidden (view full) ---

32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * @(#)ffs_extern.h 8.3 (Berkeley) 4/16/94
1/*
2 * modified for EXT2FS support in Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 */
7/*-
8 * Copyright (c) 1991, 1993, 1994

--- 23 unchanged lines hidden (view full) ---

32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 * @(#)ffs_extern.h 8.3 (Berkeley) 4/16/94
40 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_extern.h 83366 2001-09-12 08:38:13Z julian $
40 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_extern.h 92728 2002-03-19 22:40:48Z alfred $
41 */
42
43#ifndef _SYS_GNU_EXT2FS_EXT2_EXTERN_H_
44#define _SYS_GNU_EXT2FS_EXT2_EXTERN_H_
45
46struct dinode;
47struct ext2_inode;
48struct inode;
49struct mount;
50struct vfsconf;
51struct vnode;
52
41 */
42
43#ifndef _SYS_GNU_EXT2FS_EXT2_EXTERN_H_
44#define _SYS_GNU_EXT2FS_EXT2_EXTERN_H_
45
46struct dinode;
47struct ext2_inode;
48struct inode;
49struct mount;
50struct vfsconf;
51struct vnode;
52
53int ext2_alloc __P((struct inode *,
54 daddr_t, daddr_t, int, struct ucred *, daddr_t *));
55int ext2_balloc __P((struct inode *,
56 daddr_t, int, struct ucred *, struct buf **, int));
57int ext2_blkatoff __P((struct vnode *, off_t, char **, struct buf **));
58void ext2_blkfree __P((struct inode *, daddr_t, long));
59daddr_t ext2_blkpref __P((struct inode *, daddr_t, int, daddr_t *, daddr_t));
60int ext2_bmap __P((struct vop_bmap_args *));
61int ext2_init __P((struct vfsconf *));
62int ext2_reallocblks __P((struct vop_reallocblks_args *));
63int ext2_reclaim __P((struct vop_reclaim_args *));
64void ext2_setblock __P((struct ext2_sb_info *, u_char *, daddr_t));
65int ext2_truncate __P((struct vnode *, off_t, int, struct ucred *, struct thread *));
66int ext2_update __P((struct vnode *, int));
67int ext2_valloc __P((struct vnode *, int, struct ucred *, struct vnode **));
68int ext2_vfree __P((struct vnode *, ino_t, int));
69int ext2_lookup __P((struct vop_cachedlookup_args *));
70int ext2_readdir __P((struct vop_readdir_args *));
71void ext2_print_dinode __P((struct dinode *));
72void ext2_print_inode __P((struct inode *));
73int ext2_direnter __P((struct inode *,
74 struct vnode *, struct componentname *));
75int ext2_dirremove __P((struct vnode *, struct componentname *));
76int ext2_dirrewrite __P((struct inode *,
77 struct inode *, struct componentname *));
78int ext2_dirempty __P((struct inode *, ino_t, struct ucred *));
79int ext2_checkpath __P((struct inode *, struct inode *, struct ucred *));
80struct ext2_group_desc * get_group_desc __P((struct mount * ,
81 unsigned int , struct buf ** ));
82int ext2_group_sparse __P((int group));
83void ext2_discard_prealloc __P((struct inode *));
84int ext2_inactive __P((struct vop_inactive_args *));
85int ext2_new_block __P ((struct mount * mp, unsigned long goal,
53int ext2_alloc(struct inode *,
54 daddr_t, daddr_t, int, struct ucred *, daddr_t *);
55int ext2_balloc(struct inode *,
56 daddr_t, int, struct ucred *, struct buf **, int);
57int ext2_blkatoff(struct vnode *, off_t, char **, struct buf **);
58void ext2_blkfree(struct inode *, daddr_t, long);
59daddr_t ext2_blkpref(struct inode *, daddr_t, int, daddr_t *, daddr_t);
60int ext2_bmap(struct vop_bmap_args *);
61int ext2_init(struct vfsconf *);
62int ext2_reallocblks(struct vop_reallocblks_args *);
63int ext2_reclaim(struct vop_reclaim_args *);
64void ext2_setblock(struct ext2_sb_info *, u_char *, daddr_t);
65int ext2_truncate(struct vnode *, off_t, int, struct ucred *, struct thread *);
66int ext2_update(struct vnode *, int);
67int ext2_valloc(struct vnode *, int, struct ucred *, struct vnode **);
68int ext2_vfree(struct vnode *, ino_t, int);
69int ext2_lookup(struct vop_cachedlookup_args *);
70int ext2_readdir(struct vop_readdir_args *);
71void ext2_print_dinode(struct dinode *);
72void ext2_print_inode(struct inode *);
73int ext2_direnter(struct inode *,
74 struct vnode *, struct componentname *);
75int ext2_dirremove(struct vnode *, struct componentname *);
76int ext2_dirrewrite(struct inode *,
77 struct inode *, struct componentname *);
78int ext2_dirempty(struct inode *, ino_t, struct ucred *);
79int ext2_checkpath(struct inode *, struct inode *, struct ucred *);
80struct ext2_group_desc * get_group_desc(struct mount * ,
81 unsigned int , struct buf ** );
82int ext2_group_sparse(int group);
83void ext2_discard_prealloc(struct inode *);
84int ext2_inactive(struct vop_inactive_args *);
85int ext2_new_block(struct mount * mp, unsigned long goal,
86 u_int32_t * prealloc_count,
86 u_int32_t * prealloc_count,
87 u_int32_t * prealloc_block));
88ino_t ext2_new_inode __P ((const struct inode * dir, int mode));
89unsigned long ext2_count_free __P((struct buf *map, unsigned int numchars));
90void ext2_free_blocks __P((struct mount * mp, unsigned long block,
91 unsigned long count));
92void ext2_free_inode __P((struct inode * inode));
93void ext2_ei2di __P((struct ext2_inode *ei, struct dinode *di));
94void ext2_di2ei __P((struct dinode *di, struct ext2_inode *ei));
95void mark_buffer_dirty __P((struct buf *bh));
87 u_int32_t * prealloc_block);
88ino_t ext2_new_inode(const struct inode * dir, int mode);
89unsigned long ext2_count_free(struct buf *map, unsigned int numchars);
90void ext2_free_blocks(struct mount * mp, unsigned long block,
91 unsigned long count);
92void ext2_free_inode(struct inode * inode);
93void ext2_ei2di(struct ext2_inode *ei, struct dinode *di);
94void ext2_di2ei(struct dinode *di, struct ext2_inode *ei);
95void mark_buffer_dirty(struct buf *bh);
96
97/*
98 * This macro allows the ufs code to distinguish between an EXT2 and a
99 * non-ext2(FFS/LFS) vnode.
100 */
101#define IS_EXT2_VNODE(vp) (vp->v_mount->mnt_stat.f_type == MOUNT_EXT2FS)
102
103extern vop_t **ext2_vnodeop_p;
104extern vop_t **ext2_specop_p;
105extern vop_t **ext2_fifoop_p;
106
107#endif /* !_SYS_GNU_EXT2FS_EXT2_EXTERN_H_ */
96
97/*
98 * This macro allows the ufs code to distinguish between an EXT2 and a
99 * non-ext2(FFS/LFS) vnode.
100 */
101#define IS_EXT2_VNODE(vp) (vp->v_mount->mnt_stat.f_type == MOUNT_EXT2FS)
102
103extern vop_t **ext2_vnodeop_p;
104extern vop_t **ext2_specop_p;
105extern vop_t **ext2_fifoop_p;
106
107#endif /* !_SYS_GNU_EXT2FS_EXT2_EXTERN_H_ */