Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IqbPj-0001r7-At for mharc-grub-devel@gnu.org; Fri, 09 Nov 2007 16:29:19 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IqbPh-0001qr-Dn for grub-devel@gnu.org; Fri, 09 Nov 2007 16:29:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IqbPf-0001qY-3j for grub-devel@gnu.org; Fri, 09 Nov 2007 16:29:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IqbPe-0001qV-ST for grub-devel@gnu.org; Fri, 09 Nov 2007 16:29:14 -0500 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 1IqbPe-0006Uz-C5 for grub-devel@gnu.org; Fri, 09 Nov 2007 16:29:14 -0500 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 1IqbPd-0002Y4-3M for grub-devel@gnu.org; Fri, 09 Nov 2007 22:29:13 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1IqbPQ-00084C-98 for grub-devel@gnu.org; Fri, 09 Nov 2007 22:29:00 +0100 Date: Fri, 9 Nov 2007 22:29:00 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20071109212900.GF23437@thorin> References: <20071105151750.GA3401@thorin> <871wazl9gk.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871wazl9gk.fsf@xs4all.nl> Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. 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: 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 21:29:17 -0000 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. -- 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 /.)