Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KEf6h-0002xa-46 for mharc-grub-devel@gnu.org; Fri, 04 Jul 2008 02:49:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEf6f-0002wN-LD for grub-devel@gnu.org; Fri, 04 Jul 2008 02:49:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEf6d-0002uw-ME for grub-devel@gnu.org; Fri, 04 Jul 2008 02:49:20 -0400 Received: from [199.232.76.173] (port=34189 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEf6d-0002uq-GL for grub-devel@gnu.org; Fri, 04 Jul 2008 02:49:19 -0400 Received: from mx20.gnu.org ([199.232.41.8]:32232) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KEf6c-0005n2-TC for grub-devel@gnu.org; Fri, 04 Jul 2008 02:49:19 -0400 Received: from ag-out-0708.google.com ([72.14.246.250]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KEf6b-0002wq-Rq for grub-devel@gnu.org; Fri, 04 Jul 2008 02:49:18 -0400 Received: by ag-out-0708.google.com with SMTP id 31so7141887agc.10 for ; Thu, 03 Jul 2008 23:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=mcGAI5NQR0hYsk5OuUGROOmshY80FPy9oLYiBeGI4t4=; b=LSLPILZk6/pHfx8Em0hZgX07umuWZTH5HonjM+ZZLKTQVUa9V/U3cM70kf+E8aED7E fdPD+cbzIKaaGMXG6acC08DS10lkLc+102mc4+njW6tajwc1vHCTE22H+c+UNAEVr3Fw aeYusM4kjobNhe8cPzTi9eO9HnFZUhb/n7llM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jVJs+epJa2AKxE3qtilo4+CElt3I0nvrwy+iLblLC812bCk1TfeMj7UTJLRDM5dkHd d1HbiSVRLMdwbjr+oi6YWZ17ID4tjNpJKm58A+FXUXvDpRmPJkjpNPTS6yd4mGo42JX+ HVDfOI9LQvViRDZydqlw0Wh86JW8IPOqUnWxM= Received: by 10.110.5.18 with SMTP id 18mr30306tie.43.1215154150803; Thu, 03 Jul 2008 23:49:10 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Thu, 3 Jul 2008 23:49:10 -0700 (PDT) Message-ID: Date: Fri, 4 Jul 2008 14:49:10 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <1215135163.26019.44.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1214937759.9353.64.camel@localhost> <20080701204816.GA31206@thorin> <1214954927.9353.91.camel@localhost> <20080702142245.GA21064@thorin> <1215027160.9353.125.camel@localhost> <20080703140211.GA19341@thorin> <1215104875.8123.23.camel@localhost> <20080704000829.GE4074@thorin> <1215135163.26019.44.camel@localhost> X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: grub-probe detects ext4 wronly as ext2 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, 04 Jul 2008 06:49:21 -0000 Hi, First of all, grub-setup is conservative enough. It read the data twice, one using host os, one using grub, and compare result. If the data is corrupted, the comparison will fail and it will refuse to install. This is an example of good practice, which check the driver by function, not by flags. The flags are a little vague, for example, if they change btree structure in the future, this would introduce another flag, but we don't need to worry about it, because we don't use it at all. If we can ensure the boot partition can be accessed, then the problem is solved. Yes, there may be other partition using ext4 that we can't access, but remember that linux loader will check for signatures as well, a corrupted kernel would not be loaded. So the difference is merely the error message users sees, unknown filesystem or invalid kernel. And, grub WILL follow the evolution the extN, because it's the primary boot loader for linux. The only reason we don't have ext4 support at present is because it's not stable. If major distro starts to use it as default, we would have to support it as well. -- Bean