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) 1982, 1986, 1993 --- 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 * @(#)fs.h 8.7 (Berkeley) 4/19/94 |
36 * $FreeBSD: head/sys/fs/ext2fs/fs.h 251809 2013-06-16 16:10:45Z pfg $ |
37 */ 38 39#ifndef _FS_EXT2FS_FS_H_ 40#define _FS_EXT2FS_FS_H_ 41 42/* 43 * Each disk drive contains some number of file systems. 44 * A file system consists of a number of cylinder groups. --- 15 unchanged lines hidden (view full) --- 60/* 61 * The path name on which the file system is mounted is maintained 62 * in fs_fsmnt. MAXMNTLEN defines the amount of space allocated in 63 * the super block for this name. 64 */ 65#define MAXMNTLEN 512 66 67/* |
68 * A summary of contiguous blocks of various sizes is maintained 69 * in each cylinder group. Normally this is set by the initial 70 * value of fs_maxcontig. 71 * 72 * XXX:FS_MAXCONTIG is set to 16 to conserve space. Here we set 73 * EXT2_MAXCONTIG to 32 for better performance. 74 */ 75#define EXT2_MAXCONTIG 32 76 77/* |
78 * Grigoriy Orlov <gluk@ptci.ru> has done some extensive work to fine 79 * tune the layout preferences for directories within a filesystem. 80 * His algorithm can be tuned by adjusting the following parameters 81 * which tell the system the average file size and the average number 82 * of files per directory. These defaults are well selected for typical 83 * filesystems, but may need to be tuned for odd cases like filesystems 84 * being used for squid caches or news spools. 85 * AVFPDIR is the expected number of files per directory. AVGDIRSIZE is --- 77 unchanged lines hidden --- |