2009-03-18 Michel Dänzer <michel@daenzer.net>
* fs/ext2.c (grub_ext2_read_block): Take endianness into account when checking inode flags for EXT4_EXTENTS_FLAG.
This commit is contained in:
parent
14aad8072c
commit
177b82ca8b
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-03-18 Michel Dänzer <michel@daenzer.net>
|
||||
|
||||
* fs/ext2.c (grub_ext2_read_block): Take endianness into account when
|
||||
checking inode flags for EXT4_EXTENTS_FLAG.
|
||||
|
||||
2009-03-18 Robert Millan <rmh@aybabtu.com>
|
||||
|
||||
* loader/i386/linux.c: Include `<grub/video.h>' and
|
||||
|
|
|
@ -385,7 +385,7 @@ grub_ext2_read_block (grub_fshelp_node_t node, grub_disk_addr_t fileblock)
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue