Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JcDsa-0000eN-4V for mharc-grub-devel@gnu.org; Thu, 20 Mar 2008 02:03:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JcDsY-0000e7-BA for grub-devel@gnu.org; Thu, 20 Mar 2008 02:03:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JcDsV-0000dv-Sj for grub-devel@gnu.org; Thu, 20 Mar 2008 02:03:52 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JcDsV-0000ds-MH for grub-devel@gnu.org; Thu, 20 Mar 2008 02:03:51 -0400 Received: from ti-out-0910.google.com ([209.85.142.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JcDsV-0007C9-0o for grub-devel@gnu.org; Thu, 20 Mar 2008 02:03:51 -0400 Received: by ti-out-0910.google.com with SMTP id a20so345406tia.10 for ; Wed, 19 Mar 2008 23:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=GJH6nYPj+N8mWlHHd4OuOZBXc3ViN/Ri0/CdYsTQNJs=; b=ichT6onWbfpsZNUdaiATRhBS1jqa4FeO2bYAWbVgOFYisiayti5eieYVH78j3lWQ4Jmb7YOuPe2OhucMinNpculMgB0PxT9qSPJku2d/a7r5xJMIDiVqD2ogIAEa4foWvUBF53od10qgQMxBoXaIF1yJAgTJvzJgdwKWK2kTqXQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GBiXQyMR6MoGx2i+xHzkxCLDMImVBZF3uFL6ErI+8rfkVw9S2z/wvZ72LBQdQ5hk73Amgy3nsuPUYQHnahU9r3t4tTZLunyPW32B3ieV1vzdr1jaK+FDOk+TqGlzv8hHFZkLJIAcnHPTO+dTk8SFHnkohBdRMzvDg/iT2gogEVA= Received: by 10.110.31.5 with SMTP id e5mr168793tie.35.1205993025250; Wed, 19 Mar 2008 23:03:45 -0700 (PDT) Received: by 10.110.62.19 with HTTP; Wed, 19 Mar 2008 23:03:45 -0700 (PDT) Message-ID: Date: Thu, 20 Mar 2008 14:03:45 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <20080320001250.GA22998@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080320001250.GA22998@thorin> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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 06:03:54 -0000 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. 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