Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KDzYH-0007db-7v for mharc-grub-devel@gnu.org; Wed, 02 Jul 2008 06:27:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDzYE-0007bw-Gh for grub-devel@gnu.org; Wed, 02 Jul 2008 06:27:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDzYC-0007ag-4G for grub-devel@gnu.org; Wed, 02 Jul 2008 06:27:01 -0400 Received: from [199.232.76.173] (port=55894 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDzYB-0007aY-UV for grub-devel@gnu.org; Wed, 02 Jul 2008 06:27:00 -0400 Received: from mta31.charter.net ([216.33.127.82]:64120) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KDzYB-0004lH-9j for grub-devel@gnu.org; Wed, 02 Jul 2008 06:26:59 -0400 Received: from aarprv06.charter.net ([10.20.200.76]) by mta31.charter.net (InterMail vM.7.08.03.00 201-2186-126-20070710) with ESMTP id <20080702102655.LRUX2641.mta31.charter.net@aarprv06.charter.net>; Wed, 2 Jul 2008 06:26:55 -0400 Received: from [192.168.0.102] (really [71.10.234.12]) by aarprv06.charter.net with ESMTP id <20080702102655.NTM3194.aarprv06.charter.net@[192.168.0.102]>; Wed, 2 Jul 2008 06:26:55 -0400 Message-ID: <486B57EF.2050300@isaac.cedarswampstudios.org> Date: Wed, 02 Jul 2008 06:26:55 -0400 From: Isaac Dupree User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: The development of GRUB 2 References: <1214964880.7362.17.camel@dv> <1214966028.9353.95.camel@localhost> <20080702002031.7gkuoel14wg80c0k-cebfxv@webmail.spamcop.net> In-Reply-To: <20080702002031.7gkuoel14wg80c0k-cebfxv@webmail.spamcop.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Chzlrs: 0 X-detected-kernel: by monty-python.gnu.org: Solaris 10 (1203?) Cc: =?ISO-8859-1?Q?Javier_Mart=EDn?= Subject: Re: Eliminating grub_size_t 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: Wed, 02 Jul 2008 10:27:03 -0000 >>> size_t has different size on 32-bit and 64-bit systems, but we should >>> strive to make the userspace utilities work like the bootloader, so that >>> possible problems can be detected early and debugged easily. >> I didn't understand this. What do you mean with "US working like the >> bootloader?" > > I mean that if, say, GRUB fails to read reiserfs, I'd like to be able to > reproduce the problem in grub-fstest even if I'm compiling it on x86_64. In this case, so we're producing a 32-bit, pc grub image. To have a similar effect in grub-fstest, we'd need to define grub_size_t to be a 32-bit quantity when compiling that too, am I right? Is there any reason not to just have grub-fstest try to imitate whatever the bootloader image decides it needs? So if some platform requires a 64-bit bootloader and we're running on 32-bits, we may need a 64-bit grub_size_t in both places (well, this is maybe not likely to work entirely, but GCC can generate the operations -- or we could just use 32 bit for grub-fstest then if we think it's the least-nonsensical thing to do in that hypothetical situation). -Isaac