grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Journal support for ext2


From: Bean
Subject: Re: [PATCH] Journal support for ext2
Date: Thu, 20 Mar 2008 14:03:45 +0800

On Thu, Mar 20, 2008 at 8:12 AM, Robert Millan <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]