* grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse chunks.
This commit is contained in:
parent
cdae5bf208
commit
58f66137a3
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue