Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IqVrF-0000CU-FP for mharc-grub-devel@gnu.org; Fri, 09 Nov 2007 10:33:21 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IqVrD-0000As-Dw for grub-devel@gnu.org; Fri, 09 Nov 2007 10:33:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IqVrB-00008f-Pm for grub-devel@gnu.org; Fri, 09 Nov 2007 10:33:19 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IqVrB-00008a-ND for grub-devel@gnu.org; Fri, 09 Nov 2007 10:33:17 -0500 Received: from smtp-vbr4.xs4all.nl ([194.109.24.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IqVrB-00011e-5L for grub-devel@gnu.org; Fri, 09 Nov 2007 10:33:17 -0500 Received: from localhost.localdomain (249-174.surfsnel.dsl.internl.net [145.99.174.249]) by smtp-vbr4.xs4all.nl (8.13.8/8.13.8) with ESMTP id lA9FXFwT093774 for ; Fri, 9 Nov 2007 16:33:16 +0100 (CET) (envelope-from mgerards@xs4all.nl) From: Marco Gerards To: The development of GRUB 2 References: <20071105151750.GA3401@thorin> Mail-Copies-To: mgerards@xs4all.nl Date: Fri, 09 Nov 2007 16:33:47 +0100 In-Reply-To: <20071105151750.GA3401@thorin> (Robert Millan's message of "Mon, 5 Nov 2007 16:17:50 +0100") Message-ID: <871wazl9gk.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: Fri, 09 Nov 2007 15:33:19 -0000 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? -- Marco