Magellan Linux

Annotation of /trunk/mkinitrd-magellan/klibc/usr/kinit/fstype/ext3_fs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (hide annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 3505 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 niro 532 /*
2     * The second extended file system magic number
3     */
4     #define EXT3_SUPER_MAGIC 0xEF53
5    
6     #define EXT3_FEATURE_COMPAT_HAS_JOURNAL 0x0004
7    
8     /*
9     * Structure of the super block
10     */
11     struct ext3_super_block {
12     /*00*/ __u32 s_inodes_count;
13     /* Inodes count */
14     __u32 s_blocks_count; /* Blocks count */
15     __u32 s_r_blocks_count; /* Reserved blocks count */
16     __u32 s_free_blocks_count; /* Free blocks count */
17     /*10*/ __u32 s_free_inodes_count;
18     /* Free inodes count */
19     __u32 s_first_data_block; /* First Data Block */
20     __u32 s_log_block_size; /* Block size */
21     __s32 s_log_frag_size; /* Fragment size */
22     /*20*/ __u32 s_blocks_per_group;
23     /* # Blocks per group */
24     __u32 s_frags_per_group; /* # Fragments per group */
25     __u32 s_inodes_per_group; /* # Inodes per group */
26     __u32 s_mtime; /* Mount time */
27     /*30*/ __u32 s_wtime;
28     /* Write time */
29     __u16 s_mnt_count; /* Mount count */
30     __s16 s_max_mnt_count; /* Maximal mount count */
31     __u16 s_magic; /* Magic signature */
32     __u16 s_state; /* File system state */
33     __u16 s_errors; /* Behaviour when detecting errors */
34     __u16 s_minor_rev_level; /* minor revision level */
35     /*40*/ __u32 s_lastcheck;
36     /* time of last check */
37     __u32 s_checkinterval; /* max. time between checks */
38     __u32 s_creator_os; /* OS */
39     __u32 s_rev_level; /* Revision level */
40     /*50*/ __u16 s_def_resuid;
41     /* Default uid for reserved blocks */
42     __u16 s_def_resgid; /* Default gid for reserved blocks */
43     /*
44     * These fields are for EXT3_DYNAMIC_REV superblocks only.
45     *
46     * Note: the difference between the compatible feature set and
47     * the incompatible feature set is that if there is a bit set
48     * in the incompatible feature set that the kernel doesn't
49     * know about, it should refuse to mount the filesystem.
50     *
51     * e2fsck's requirements are more strict; if it doesn't know
52     * about a feature in either the compatible or incompatible
53     * feature set, it must abort and not try to meddle with
54     * things it doesn't understand...
55     */
56     __u32 s_first_ino; /* First non-reserved inode */
57     __u16 s_inode_size; /* size of inode structure */
58     __u16 s_block_group_nr; /* block group # of this superblock */
59     __u32 s_feature_compat; /* compatible feature set */
60     /*60*/ __u32 s_feature_incompat;
61     /* incompatible feature set */
62     __u32 s_feature_ro_compat; /* readonly-compatible feature set */
63     /*68*/ __u8 s_uuid[16];
64     /* 128-bit uuid for volume */
65     /*78*/ char s_volume_name[16];
66     /* volume name */
67     /*88*/ char s_last_mounted[64];
68     /* directory where last mounted */
69     /*C8*/ __u32 s_algorithm_usage_bitmap;
70     /* For compression */
71     /*
72     * Performance hints. Directory preallocation should only
73     * happen if the EXT3_FEATURE_COMPAT_DIR_PREALLOC flag is on.
74     */
75     __u8 s_prealloc_blocks; /* Nr of blocks to try to preallocate */
76     __u8 s_prealloc_dir_blocks; /* Nr to preallocate for dirs */
77     __u16 s_padding1;
78     /*
79     * Journaling support valid if EXT3_FEATURE_COMPAT_HAS_JOURNAL set.
80     */
81     /*D0*/ __u8 s_journal_uuid[16];
82     /* uuid of journal superblock */
83     /*E0*/ __u32 s_journal_inum;
84     /* inode number of journal file */
85     __u32 s_journal_dev; /* device number of journal file */
86     __u32 s_last_orphan; /* start of list of inodes to delete */
87     __u32 s_hash_seed[4]; /* HTREE hash seed */
88     __u8 s_def_hash_version; /* Default hash version to use */
89     __u8 s_reserved_char_pad;
90     __u16 s_reserved_word_pad;
91     __u32 s_reserved[192]; /* Padding to the end of the block */
92     };