Deleted Added
full compact
ext2_extern.h (143578) ext2_extern.h (202283)
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

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

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)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

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

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * @(#)ffs_extern.h 8.3 (Berkeley) 4/16/94
36 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_extern.h 143578 2005-03-14 13:30:06Z phk $
36 * $FreeBSD: head/sys/fs/ext2fs/ext2_extern.h 202283 2010-01-14 14:30:54Z lulf $
37 */
38
37 */
38
39#ifndef _SYS_GNU_EXT2FS_EXT2_EXTERN_H_
40#define _SYS_GNU_EXT2FS_EXT2_EXTERN_H_
39#ifndef _FS_EXT2FS_EXT2_EXTERN_H_
40#define _FS_EXT2FS_EXT2_EXTERN_H_
41
41
42struct ext2_inode;
42struct ext2fs_dinode;
43struct indir;
44struct inode;
45struct mount;
46struct vfsconf;
47struct vnode;
48
49int ext2_alloc(struct inode *,
50 int32_t, int32_t, int, struct ucred *, int32_t *);
51int ext2_balloc(struct inode *,
52 int32_t, int, struct ucred *, struct buf **, int);
53int ext2_blkatoff(struct vnode *, off_t, char **, struct buf **);
54void ext2_blkfree(struct inode *, int32_t, long);
55int32_t ext2_blkpref(struct inode *, int32_t, int, int32_t *, int32_t);
56int ext2_bmap(struct vop_bmap_args *);
57int ext2_bmaparray(struct vnode *, int32_t, int32_t *, int *, int *);
58void ext2_dirbad(struct inode *ip, doff_t offset, char *how);
43struct indir;
44struct inode;
45struct mount;
46struct vfsconf;
47struct vnode;
48
49int ext2_alloc(struct inode *,
50 int32_t, int32_t, int, struct ucred *, int32_t *);
51int ext2_balloc(struct inode *,
52 int32_t, int, struct ucred *, struct buf **, int);
53int ext2_blkatoff(struct vnode *, off_t, char **, struct buf **);
54void ext2_blkfree(struct inode *, int32_t, long);
55int32_t ext2_blkpref(struct inode *, int32_t, int, int32_t *, int32_t);
56int ext2_bmap(struct vop_bmap_args *);
57int ext2_bmaparray(struct vnode *, int32_t, int32_t *, int *, int *);
58void ext2_dirbad(struct inode *ip, doff_t offset, char *how);
59void ext2_ei2i(struct ext2_inode *, struct inode *);
59void ext2_ei2i(struct ext2fs_dinode *, struct inode *);
60int ext2_getlbns(struct vnode *, int32_t, struct indir *, int *);
60int ext2_getlbns(struct vnode *, int32_t, struct indir *, int *);
61void ext2_i2ei(struct inode *, struct ext2_inode *);
61void ext2_i2ei(struct inode *, struct ext2fs_dinode *);
62void ext2_itimes(struct vnode *vp);
63int ext2_reallocblks(struct vop_reallocblks_args *);
64int ext2_reclaim(struct vop_reclaim_args *);
62void ext2_itimes(struct vnode *vp);
63int ext2_reallocblks(struct vop_reallocblks_args *);
64int ext2_reclaim(struct vop_reclaim_args *);
65void ext2_setblock(struct ext2_sb_info *, u_char *, int32_t);
65void ext2_setblock(struct m_ext2fs *, u_char *, int32_t);
66int ext2_truncate(struct vnode *, off_t, int, struct ucred *, struct thread *);
67int ext2_update(struct vnode *, int);
68int ext2_valloc(struct vnode *, int, struct ucred *, struct vnode **);
69int ext2_vfree(struct vnode *, ino_t, int);
70int ext2_vinit(struct mount *, struct vop_vector *, struct vnode **vpp);
71int ext2_lookup(struct vop_cachedlookup_args *);
72int ext2_readdir(struct vop_readdir_args *);
73void ext2_print_inode(struct inode *);
74int ext2_direnter(struct inode *,
75 struct vnode *, struct componentname *);
76int ext2_dirremove(struct vnode *, struct componentname *);
77int ext2_dirrewrite(struct inode *,
78 struct inode *, struct componentname *);
79int ext2_dirempty(struct inode *, ino_t, struct ucred *);
80int ext2_checkpath(struct inode *, struct inode *, struct ucred *);
66int ext2_truncate(struct vnode *, off_t, int, struct ucred *, struct thread *);
67int ext2_update(struct vnode *, int);
68int ext2_valloc(struct vnode *, int, struct ucred *, struct vnode **);
69int ext2_vfree(struct vnode *, ino_t, int);
70int ext2_vinit(struct mount *, struct vop_vector *, struct vnode **vpp);
71int ext2_lookup(struct vop_cachedlookup_args *);
72int ext2_readdir(struct vop_readdir_args *);
73void ext2_print_inode(struct inode *);
74int ext2_direnter(struct inode *,
75 struct vnode *, struct componentname *);
76int ext2_dirremove(struct vnode *, struct componentname *);
77int ext2_dirrewrite(struct inode *,
78 struct inode *, struct componentname *);
79int ext2_dirempty(struct inode *, ino_t, struct ucred *);
80int ext2_checkpath(struct inode *, struct inode *, struct ucred *);
81struct ext2_group_desc * get_group_desc(struct mount * ,
82 unsigned int , struct buf ** );
83int ext2_group_sparse(int group);
84void ext2_discard_prealloc(struct inode *);
81int cg_has_sb(int i);
85int ext2_inactive(struct vop_inactive_args *);
82int ext2_inactive(struct vop_inactive_args *);
86int ext2_new_block(struct mount * mp, unsigned long goal,
87 u_int32_t *prealloc_count, 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 mark_buffer_dirty(struct buf *bh);
94
95/* Flags to low-level allocation routines. */
96#define B_CLRBUF 0x01 /* Request allocated buffer be cleared. */
97#define B_SYNC 0x02 /* Do all allocations synchronously. */
98#define B_METAONLY 0x04 /* Return indirect block buffer. */
99#define B_NOWAIT 0x08 /* do not sleep to await lock */
100
101extern struct vop_vector ext2_vnodeops;
102extern struct vop_vector ext2_fifoops;
103
83
84/* Flags to low-level allocation routines. */
85#define B_CLRBUF 0x01 /* Request allocated buffer be cleared. */
86#define B_SYNC 0x02 /* Do all allocations synchronously. */
87#define B_METAONLY 0x04 /* Return indirect block buffer. */
88#define B_NOWAIT 0x08 /* do not sleep to await lock */
89
90extern struct vop_vector ext2_vnodeops;
91extern struct vop_vector ext2_fifoops;
92
104#endif /* !_SYS_GNU_EXT2FS_EXT2_EXTERN_H_ */
93#endif /* !_FS_EXT2FS_EXT2_EXTERN_H_ */