[2033] 2009-03-18 Michel D?\195?\164nzer <[email protected]>

Felix Zielcke <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2033
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2033
Author:   fzielcke
Date:     2009-03-19 09:36:52 +0000 (Thu, 19 Mar 2009)
Log Message:
-----------
2009-03-18  Michel D?\195?\164nzer  <[email protected]>

	* fs/ext2.c (grub_ext2_read_block): Take endianness into account when
	checking inode flags for EXT4_EXTENTS_FLAG.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/fs/ext2.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-03-18 10:21:28 UTC (rev 2032)
+++ trunk/grub2/ChangeLog	2009-03-19 09:36:52 UTC (rev 2033)
@@ -1,3 +1,8 @@
+2009-03-18  Michel Dänzer  <[email protected]>
+
+	* fs/ext2.c (grub_ext2_read_block): Take endianness into account when
+	checking inode flags for EXT4_EXTENTS_FLAG.
+
 2009-03-18  Robert Millan  <[email protected]>
 
 	* loader/i386/linux.c: Include `<grub/video.h>' and

Modified: trunk/grub2/fs/ext2.c
===================================================================
--- trunk/grub2/fs/ext2.c	2009-03-18 10:21:28 UTC (rev 2032)
+++ trunk/grub2/fs/ext2.c	2009-03-19 09:36:52 UTC (rev 2033)
@@ -385,7 +385,7 @@
   unsigned int blksz = EXT2_BLOCK_SIZE (data);
   int log2_blksz = LOG2_EXT2_BLOCK_SIZE (data);
   
-  if (inode->flags & EXT4_EXTENTS_FLAG)
+  if (grub_le_to_cpu32(inode->flags) & EXT4_EXTENTS_FLAG)
     {
       char buf[EXT2_BLOCK_SIZE(data)];
       struct grub_ext4_extent_header *leaf;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.