* grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence

of extended attributes.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-01-30 09:22:43 +01:00
parent f81ef4b580
commit cf94fd6209
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
of extended attributes.
2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
* util/grub-install.in: change misleading comment about

View file

@ -295,9 +295,7 @@ grub_xfs_read_block (grub_fshelp_node_t node, grub_disk_addr_t fileblock)
nrec = grub_be_to_cpu16 (node->inode.data.btree.numrecs);
keys = &node->inode.data.btree.keys[0];
if (node->inode.fork_offset)
recoffset = (node->inode.fork_offset
- ((char *) &node->inode.data.btree.keys - (char *) &node->inode))
/ (2 * sizeof (grub_uint64_t));
recoffset = (node->inode.fork_offset - 1) / 2;
else
recoffset = ((1 << node->data->sblock.log2_inode)
- ((char *) &node->inode.data.btree.keys