Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LjS95-0003D3-SJ for mharc-grub-devel@gnu.org; Tue, 17 Mar 2009 01:47:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjS92-0003CI-6y for grub-devel@gnu.org; Tue, 17 Mar 2009 01:47:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjS8x-0003Aq-6Q for grub-devel@gnu.org; Tue, 17 Mar 2009 01:47:19 -0400 Received: from [199.232.76.173] (port=46982 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjS8w-0003Ak-O4 for grub-devel@gnu.org; Tue, 17 Mar 2009 01:47:14 -0400 Received: from ti-out-0910.google.com ([209.85.142.185]:9506) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LjS8w-0001VN-9c for grub-devel@gnu.org; Tue, 17 Mar 2009 01:47:14 -0400 Received: by ti-out-0910.google.com with SMTP id j3so1087619tid.10 for ; Mon, 16 Mar 2009 22:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=j7951o0Wb7lN6iJYFfH0hTR/oB5QTWBGs5FS5VetoCA=; b=GcloRA5/p8D+uhQkuo57lLeNwzJMjW93LrZpKJGYKVEHRuELzFRt8DSGzShA1xZzsv uHq5vZDflo/8QqpsBR9+rUyENcyPAQhhQCFqaPcW8jGQFDGA3oRc4h370Cnz1FmUD3dg wV+pR5V29yfSqGaiVkTscSOcVgKOvob7URf/k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=V1f2EKPRNFq2p6GfovEU4nhaqPBtkwhIMYEpkRkD2eTseJDt27FyHj+ZIrZOTp+s/Z nw0CnGos/T4aEPYJ3sA35WRHTryyHU9JwoC51dBSz6G9z56/V/GgYwD8CtO8ax0IOUwN fVfyosumVW1KvjTi4fGbnBFnklVXUDBQF6CyQ= MIME-Version: 1.0 Received: by 10.110.62.1 with SMTP id k1mr8871640tia.38.1237268830411; Mon, 16 Mar 2009 22:47:10 -0700 (PDT) In-Reply-To: <20090315153737.GB24554@thorin> References: <200903150627.34301.okuji@enbug.org> <1237113198.3490.0.camel@fz.local> <20090315153737.GB24554@thorin> Date: Tue, 17 Mar 2009 13:47:10 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] Bug fix for ext2.c 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: Tue, 17 Mar 2009 05:47:20 -0000 On Sun, Mar 15, 2009 at 11:37 PM, Robert Millan wrote: > On Sun, Mar 15, 2009 at 11:33:18AM +0100, Felix Zielcke wrote: >> Am Sonntag, den 15.03.2009, 14:00 +0800 schrieb Bean: >> >> > Hi, >> >> Hi Bean, >> >> > Oh right, this one should be ok. >> >> + =A0 =A0grub_error (GRUB_ERR_BAD_FS, "not an xfs filesystem"); >> This should probable be `not an ext2 filesystem' :) > > Why override grub_errmsg anyway? =A0"not ext2" isn't going to be more use= ful > than a "read out of range" text when displayed to the user. Hi, I think the ext2 error message is better. The "read out of range" error is such a general message, it tells us little about where it goes wrong, while with "not ext2 filesystem",. we know that the error is generated in grub_ext2_mount. Although, a more informative way is to write it like this: if (grub_errno =3D=3D GRUB_ERR_OUT_OF_RANGE) grub_error (GRUB_ERR_BAD_FS, "not an ext2 filesystem (out of range)"); But that seems a little overdo for me. Besides, fs drivers such as xfs.c, hfsplus.c use simple message for out of range error. --=20 Bean