Magellan Linux

Contents of /trunk/grub/patches/grub-0.97-ext4-3.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 899 - (show annotations) (download)
Fri Oct 16 15:40:28 2009 UTC (14 years, 7 months ago) by niro
File size: 2921 byte(s)
-added missing var decs

1 diff -Naur grub-0.97/stage2/fsys_ext2fs.c grub-0.97-magellan/stage2/fsys_ext2fs.c
2 --- grub-0.97/stage2/fsys_ext2fs.c 2009-10-16 17:30:43.000000000 +0200
3 +++ grub-0.97-magellan/stage2/fsys_ext2fs.c 2009-10-16 17:40:49.000000000 +0200
4 @@ -81,6 +81,51 @@
5 __u32 s_rev_level; /* Revision level */
6 __u16 s_def_resuid; /* Default uid for reserved blocks */
7 __u16 s_def_resgid; /* Default gid for reserved blocks */
8 + /*
9 + * These fields are for EXT2_DYNAMIC_REV superblocks only.
10 + *
11 + * Note: the difference between the compatible feature set and
12 + * the incompatible feature set is that if there is a bit set
13 + * in the incompatible feature set that the kernel doesn't
14 + * know about, it should refuse to mount the filesystem.
15 + *
16 + * e2fsck's requirements are more strict; if it doesn't know
17 + * about a feature in either the compatible or incompatible
18 + * feature set, it must abort and not try to meddle with
19 + * things it doesn't understand...
20 + */
21 + __u32 s_first_ino; /* First non-reserved inode */
22 + __u16 s_inode_size; /* size of inode structure */
23 + __u16 s_block_group_nr; /* block group # of this superblock */
24 + __u32 s_feature_compat; /* compatible feature set */
25 + __u32 s_feature_incompat; /* incompatible feature set */
26 + __u32 s_feature_ro_compat; /* readonly-compatible feature set */
27 + __u8 s_uuid[16]; /* 128-bit uuid for volume */
28 + char s_volume_name[16]; /* volume name */
29 + char s_last_mounted[64]; /* directory where last mounted */
30 + __u32 s_algorithm_usage_bitmap; /* For compression */
31 + /*
32 + * Performance hints. Directory preallocation should only
33 + * happen if the EXT2_FEATURE_COMPAT_DIR_PREALLOC flag is on.
34 + */
35 + __u8 s_prealloc_blocks; /* Nr of blocks to try to preallocate*/
36 + __u8 s_prealloc_dir_blocks; /* Nr to preallocate for dirs */
37 + __u16 s_reserved_gdt_blocks;/* Per group table for online growth */
38 + /*
39 + * Journaling support valid if EXT2_FEATURE_COMPAT_HAS_JOURNAL set.
40 + */
41 + __u8 s_journal_uuid[16]; /* uuid of journal superblock */
42 + __u32 s_journal_inum; /* inode number of journal file */
43 + __u32 s_journal_dev; /* device number of journal file */
44 + __u32 s_last_orphan; /* start of list of inodes to delete */
45 + __u32 s_hash_seed[4]; /* HTREE hash seed */
46 + __u8 s_def_hash_version; /* Default hash version to use */
47 + __u8 s_jnl_backup_type; /* Default type of journal backup */
48 + __u16 s_reserved_word_pad;
49 + __u32 s_default_mount_opts;
50 + __u32 s_first_meta_bg; /* First metablock group */
51 + __u32 s_mkfs_time; /* When the filesystem was created */
52 + __u32 s_jnl_blocks[17]; /* Backup of the journal inode */
53 /* 64bit desc support valid if EXT4_FEATURE_INCOMPAT_64BIT */
54 __u32 s_blocks_count_hi; /* Blocks count */
55 __u32 s_r_blocks_count_hi; /* Reserved blocks count */