]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Support reading files larger than 2 GiB.
authorGiuseppe Caizzone <acaizzo@gmail.com>
Sun, 14 Nov 2010 15:48:17 +0000 (16:48 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 14 Nov 2010 15:48:17 +0000 (16:48 +0100)
* grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
"offset" to grub_off_t.
(grub_udf_read_file): Likewise for parameter "pos".

ChangeLog
grub-core/fs/udf.c

index 449218cca3c1888894497a4a3ab0c9591856adca..5cffcfdbda9c76042691740ef2b0be46aa89bab4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-11-14  Giuseppe Caizzone <acaizzo@gmail.com>
+
+       Support reading files larger than 2 GiB.
+
+       * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
+       "offset" to grub_off_t.
+       (grub_udf_read_file): Likewise for parameter "pos".
+
 2010-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
index ad109bed9228e97807c134550c5b5fbac64e84ea..1600a4cd54c7dc5ea87c32592388b633576a643a 100644 (file)
@@ -471,7 +471,7 @@ grub_udf_read_file (grub_fshelp_node_t node,
                    void NESTED_FUNC_ATTR
                    (*read_hook) (grub_disk_addr_t sector,
                                  unsigned offset, unsigned length),
-                   int pos, grub_size_t len, char *buf)
+                   grub_off_t pos, grub_size_t len, char *buf)
 {
   switch (U16 (node->fe.icbtag.flags) & GRUB_UDF_ICBTAG_FLAG_AD_MASK)
     {
@@ -704,7 +704,7 @@ grub_udf_iterate_dir (grub_fshelp_node_t dir,
 {
   grub_fshelp_node_t child;
   struct grub_udf_file_ident dirent;
-  grub_uint32_t offset = 0;
+  grub_off_t offset = 0;
 
   child = grub_malloc (sizeof (struct grub_fshelp_node));
   if (!child)