On Thu, Mar 20, 2008 at 8:12 AM, Robert Millan <[EMAIL PROTECTED]> wrote: > > Hi! > > Is this patch supposed to fix > 32-bit disk addressing in filesystems? I > just setup a ~4 TB hard disk for testing (in qemu), and added a (gpt) > partition > at the end of it, surely above the 2 TiB barrier. > > What I found puzzling is that grub-emu is capable of listing files in that > partition _without_ this patch. Any idea why? This wasn't really supposed > to work was it? > > Note: grub itself can't read it yet, but this must be due to disk io problems > (asides from the lba32 limit in bochsbios).
Hi, the sector parameter in grub_disk_read is 64-bit, so it can read from disk larger than 4g.The fs interface is using 64-bit address as well, so if the implementation is all right, it can handle large partition. The problem is that fshelp function use int for offset and block number, which limit the maximum file size to 4g. You can verify this with loopback on a large file. -- Bean _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel