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

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

No files matched your search

+5
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> 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
* util/grub-mkconfig_lib.in (version_test_gt): Remove redundant * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
+4
View File
@@ -484,6 +484,10 @@ grub_ext2_read_block (grub_fshelp_node_t node, grub_disk_addr_t fileblock)
indirect: indirect:
do { 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, if (grub_disk_read (data->disk,
((grub_disk_addr_t) grub_le_to_cpu32 (indir)) ((grub_disk_addr_t) grub_le_to_cpu32 (indir))
<< log2_blksz, << log2_blksz,