Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JcKas-0004V7-31 for mharc-grub-devel@gnu.org; Thu, 20 Mar 2008 09:14:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JcKaq-0004U2-HR for grub-devel@gnu.org; Thu, 20 Mar 2008 09:14:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JcKao-0004T9-Uk for grub-devel@gnu.org; Thu, 20 Mar 2008 09:14:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcKao-0004T3-Qv for grub-devel@gnu.org; Thu, 20 Mar 2008 09:14:02 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JcKao-0007Pz-KF for grub-devel@gnu.org; Thu, 20 Mar 2008 09:14:02 -0400 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JcKai-0001hT-5a for grub-devel@gnu.org; Thu, 20 Mar 2008 14:14:01 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JcKaJ-0004Jv-9J for grub-devel@gnu.org; Thu, 20 Mar 2008 14:13:31 +0100 Date: Thu, 20 Mar 2008 14:13:31 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080320131331.GB16344@thorin> References: <20080320001250.GA22998@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] Journal support for ext2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 13:14:04 -0000 On Thu, Mar 20, 2008 at 02:03:45PM +0800, Bean wrote: > On Thu, Mar 20, 2008 at 8:12 AM, Robert Millan 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. Ah, that explains it. Note that the disk io part can't handle it yet, though. I'll have a look into that (bochsbios itself limits it, but ata.mod didn't work either). > 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. Ah ok. -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)