Deleted Added
sdiff udiff text old ( 228583 ) new ( 231168 )
full compact
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 * $FreeBSD: head/sys/fs/ext2fs/ext2fs.h 228583 2011-12-16 15:47:43Z pfg $
8 */
9/*-
10 * Copyright (c) 2009 Aditya Sarawgi
11 * All rights reserved.
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:

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

118 uint32_t e3fs_journal_inum; /* inode number of journal file */
119 uint32_t e3fs_journal_dev; /* device number of journal file */
120 uint32_t e3fs_last_orphan; /* start of list of inodes to delete */
121 uint32_t e3fs_hash_seed[4]; /* HTREE hash seed */
122 char e3fs_def_hash_version; /* Default hash version to use */
123 char e3fs_reserved_char_pad;
124 uint32_t e3fs_default_mount_opts;
125 uint32_t e3fs_first_meta_bg; /* First metablock block group */
126 uint32_t reserved2[190]; /* Padding to the end of the block */
127};
128
129
130/*
131 * In-Memory Superblock
132 */
133
134struct m_ext2fs {
135 struct ext2fs * e2fs;
136 char e2fs_fsmnt[MAXMNTLEN];/* name mounted on */
137 char e2fs_ronly; /* mounted read-only flag */
138 char e2fs_fmod; /* super block modified flag */
139 uint32_t e2fs_bsize; /* Block size */
140 uint32_t e2fs_bshift; /* calc of logical block no */
141 int32_t e2fs_bmask; /* calc of block offset */
142 int32_t e2fs_bpg; /* Number of blocks per group */
143 int64_t e2fs_qbmask; /* = s_blocksize -1 */
144 uint32_t e2fs_fsbtodb; /* Shift to get disk block */
145 uint32_t e2fs_ipg; /* Number of inodes per group */
146 uint32_t e2fs_ipb; /* Number of inodes per block */
147 uint32_t e2fs_itpg; /* Number of inode table per group */
148 uint32_t e2fs_fsize; /* Size of fragments per block */
149 uint32_t e2fs_fpb; /* Number of fragments per block */
150 uint32_t e2fs_fpg; /* Number of fragments per group */
151 uint32_t e2fs_dbpg; /* Number of descriptor blocks per group */
152 uint32_t e2fs_descpb; /* Number of group descriptors per block */
153 uint32_t e2fs_gdbcount; /* Number of group descriptors */
154 uint32_t e2fs_gcount; /* Number of groups */
155 uint32_t e2fs_first_inode;/* First inode on fs */
156 int32_t e2fs_isize; /* Size of inode */
157 uint32_t e2fs_mount_opt;
158 uint32_t e2fs_blocksize_bits;
159 uint32_t e2fs_total_dir; /* Total number of directories */
160 uint8_t *e2fs_contigdirs; /* (u) # of contig. allocated dirs */
161 char e2fs_wasvalid; /* valid at mount time */
162 off_t e2fs_maxfilesize;
163 struct ext2_gd *e2fs_gd; /* Group Descriptors */
164 int32_t e2fs_maxcontig; /* max number of contiguous blks */
165 int32_t e2fs_contigsumsize; /* size of cluster summary array */
166 int32_t *e2fs_maxcluster; /* max cluster in each cyl group */
167 struct csum *e2fs_clustersum; /* cluster summary in each cyl group */
168};
169
170/*
171 * The second extended file system version
172 */

--- 167 unchanged lines hidden ---