* grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse chunks.

This commit is contained in:
Peter Nelson 2014-12-07 17:57:49 +01:00 committed by Vladimir Serbinenko
parent cdae5bf208
commit 58f66137a3
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2014-12-07 Peter Nelson <peterdn>
* grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
chunks.
2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
* util/grub-mkconfig_lib.in (version_test_gt): Remove redundant

View file

@ -484,6 +484,10 @@ grub_ext2_read_block (grub_fshelp_node_t node, grub_disk_addr_t fileblock)
indirect:
do {
/* If the indirect block is zero, all child blocks are absent
(i.e. filled with zeros.) */
if (indir == 0)
return 0;
if (grub_disk_read (data->disk,
((grub_disk_addr_t) grub_le_to_cpu32 (indir))
<< log2_blksz,