~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/linux/ext2_fs_sb.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  *  linux/include/linux/ext2_fs_sb.h
  3  *
  4  * Copyright (C) 1992, 1993, 1994, 1995
  5  * Remy Card (card@masi.ibp.fr)
  6  * Laboratoire MASI - Institut Blaise Pascal
  7  * Universite Pierre et Marie Curie (Paris VI)
  8  *
  9  *  from
 10  *
 11  *  linux/include/linux/minix_fs_sb.h
 12  *
 13  *  Copyright (C) 1991, 1992  Linus Torvalds
 14  */
 15 
 16 #ifndef _LINUX_EXT2_FS_SB
 17 #define _LINUX_EXT2_FS_SB
 18 
 19 /*
 20  * The following is not needed anymore since the descriptors buffer
 21  * heads are now dynamically allocated
 22  */
 23 /* #define EXT2_MAX_GROUP_DESC  8 */
 24 
 25 #define EXT2_MAX_GROUP_LOADED   8
 26 
 27 /*
 28  * second extended-fs super-block data in memory
 29  */
 30 struct ext2_sb_info {
 31         unsigned long s_frag_size;      /* Size of a fragment in bytes */
 32         unsigned long s_frags_per_block;/* Number of fragments per block */
 33         unsigned long s_inodes_per_block;/* Number of inodes per block */
 34         unsigned long s_frags_per_group;/* Number of fragments in a group */
 35         unsigned long s_blocks_per_group;/* Number of blocks in a group */
 36         unsigned long s_inodes_per_group;/* Number of inodes in a group */
 37         unsigned long s_itb_per_group;  /* Number of inode table blocks per group */
 38         unsigned long s_gdb_count;      /* Number of group descriptor blocks */
 39         unsigned long s_desc_per_block; /* Number of group descriptors per block */
 40         unsigned long s_groups_count;   /* Number of groups in the fs */
 41         struct buffer_head * s_sbh;     /* Buffer containing the super block */
 42         struct ext2_super_block * s_es; /* Pointer to the super block in the buffer */
 43         struct buffer_head ** s_group_desc;
 44         unsigned short s_loaded_inode_bitmaps;
 45         unsigned short s_loaded_block_bitmaps;
 46         unsigned long s_inode_bitmap_number[EXT2_MAX_GROUP_LOADED];
 47         struct buffer_head * s_inode_bitmap[EXT2_MAX_GROUP_LOADED];
 48         unsigned long s_block_bitmap_number[EXT2_MAX_GROUP_LOADED];
 49         struct buffer_head * s_block_bitmap[EXT2_MAX_GROUP_LOADED];
 50         unsigned long  s_mount_opt;
 51         uid_t s_resuid;
 52         gid_t s_resgid;
 53         unsigned short s_mount_state;
 54         unsigned short s_pad;
 55         int s_addr_per_block_bits;
 56         int s_desc_per_block_bits;
 57         int s_inode_size;
 58         int s_first_ino;
 59 };
 60 
 61 #endif  /* _LINUX_EXT2_FS_SB */
 62 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.