Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IqsJx-0006to-1u for mharc-grub-devel@gnu.org; Sat, 10 Nov 2007 10:32:29 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IqsJv-0006pO-Fc for grub-devel@gnu.org; Sat, 10 Nov 2007 10:32:27 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IqsJt-0006li-SF for grub-devel@gnu.org; Sat, 10 Nov 2007 10:32:27 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IqsJt-0006lV-Ns for grub-devel@gnu.org; Sat, 10 Nov 2007 10:32:25 -0500 Received: from smtp-vbr9.xs4all.nl ([194.109.24.29]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IqsHG-00039i-U1 for grub-devel@gnu.org; Sat, 10 Nov 2007 10:29:43 -0500 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id lAAFTf9w047018 for ; Sat, 10 Nov 2007 16:29:41 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20071105151750.GA3401@thorin> <871wazl9gk.fsf@xs4all.nl> <20071109212900.GF23437@thorin> Mail-Copies-To: mgerards@xs4all.nl Date: Sat, 10 Nov 2007 16:30:15 +0100 In-Reply-To: <20071109212900.GF23437@thorin> (Robert Millan's message of "Fri, 9 Nov 2007 22:29:00 +0100") Message-ID: <87lk96i0e0.fsf@xs4all.nl> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.6-4.9 Subject: Re: PC partitions and big disks 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: Sat, 10 Nov 2007 15:32:27 -0000 Robert Millan writes: > On Fri, Nov 09, 2007 at 04:33:47PM +0100, Marco Gerards wrote: >> Robert Millan writes: >> >> > This should make the error much clearer when partition exceeds 2 TiB on a PC >> > partition map (currently, all user gets is a "out of partition" error which >> > is hard to figure out if you're unaware of the 2 TiB limit). >> > >> > Comments? >> >> See below :-) >> >> > -- >> > 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 /.) >> > >> > >> > * include/grub/types.h (ULONG_MAX32): New macro. >> > (ULONG_MAX64): Likewise. >> > (ULONG_MAX): Use ULONG_MAX32 / ULONG_MAX64 to define it. >> >> Please call use a GRUB_* prefix. >> >> > * util/misc.c (grub_util_warn): New function. >> > >> > * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Issue a warning >> > when `disk->total_sectors' exceeds ULONG_MAX32 on `pc' partmap. >> >> Why a warning and not an error? Or perhaps another part of GRUB >> should return an error? > > Uhm. The person who reported this later told me that the partmap was in fact > not `pc' but `gpt'. The problem this patch intended to address may still > apply, but without reproducing it first, I'd prefer not to run the risk of > "fixing" something that wasn't broken. Ok, fine for me. Please don't forget to add the GRUB_ prefix before committing :-) -- Marco