Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KDIUC-0006NL-AM for mharc-grub-devel@gnu.org; Mon, 30 Jun 2008 08:28:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDIUB-0006Me-3F for grub-devel@gnu.org; Mon, 30 Jun 2008 08:27:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDIU9-0006Lz-Tp for grub-devel@gnu.org; Mon, 30 Jun 2008 08:27:58 -0400 Received: from [199.232.76.173] (port=40601 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDIU9-0006Lp-AB for grub-devel@gnu.org; Mon, 30 Jun 2008 08:27:57 -0400 Received: from ti-out-0910.google.com ([209.85.142.187]:65052) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KDIU6-0007HG-Vj for grub-devel@gnu.org; Mon, 30 Jun 2008 08:27:57 -0400 Received: by ti-out-0910.google.com with SMTP id u5so714514tia.10 for ; Mon, 30 Jun 2008 05:27:50 -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=p6QjFpDvrr/VO8apOgFg2iqsEX0TGM/8QBxwkFh+D3o=; b=RW0xsZ9sXqhpRDwiWQw4DMqSbxuhLSydV6pI/AOVpP8ddsZOL9WDtc8c6tEmt9oVIQ V85TFMI/dn/OeSOWBh6cagZEU0A1kHpFeXIJx5vwBpsXyW5c0NrnRbhimaZoUpUZyrPG OjFMhQVoUy1nEUH9Z4bOOeyAFlE4E3LRSpTvc= 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=NTQH6xKQP8P8s9hzMjTSXeImd8+bN7hl6OD3ckXXiXMtRlayfMvcORoz3bum0yzAvA PyyM+Dky+vnqWfD1mcGzZHChKxmbAsTpb7YDBCX3MBw3OBx1CGhhWQ+/nnwR2HzFkWT4 1dnWqCoHm2tcqBZXqxaDfk2ePidCgYHdp6R5c= Received: by 10.110.26.20 with SMTP id 20mr4399123tiz.23.1214828870784; Mon, 30 Jun 2008 05:27:50 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Mon, 30 Jun 2008 05:27:50 -0700 (PDT) Message-ID: Date: Mon, 30 Jun 2008 20:27:50 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <1214827937.9353.43.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <889404A5CBB14C15B464EDBB1AE338A8@fz> <1214765178.6942.2.camel@localhost> <1214769230.6942.11.camel@localhost> <20080629211957.GD24784@thorin> <1214794971.9353.32.camel@localhost> <4868C017.8040004@isaac.cedarswampstudios.org> <1214827937.9353.43.camel@localhost> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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: Mon, 30 Jun 2008 12:27:59 -0000 On Mon, Jun 30, 2008 at 8:12 PM, Javier Mart=EDn wro= te: > El lun, 30-06-2008 a las 07:14 -0400, Isaac Dupree escribi=F3: >> > +#define EXT3_FEATURE_INCOMPAT_RECOVER 0x0004 /* Needs re= covery */ >> >> > +#define EXT2_DRIVER_SUPPORTED_INCOMPAT ( EXT2_FEATURE_INCOMPAT_FILETY= PE ) >> >> I suspect this will mean that journalled ext3 when the system crashed >> (so the filesystem "needs recovery" from the journal) won't load. (Of >> course, properly speaking that would load grub's code to replay the >> journal...) But I think that (without other changes) that would make >> the system unbootable every time there was a power outage? (Of course >> it was not guaranteed to load correctly when ignoring the journal when >> it needed recovery, but it was likely to work, IIUC.) >> >> -Isaac > > As I said, I didn't add it because I didn't know whether recovery was > supported or not. _Theoretically_ we should focus on correctness and > refuse to read such a filesystem, but here goes a workaround for > incompatible features that we do not support but still willingly want to > ignore for the sake of "compatibility". This new version of the patch > adds another macro, EXT2_DRIVER_IGNORED_INCOMPAT where we can put > features that we don't fully support, but still want a filesystem with > them to be mounted, like the needs_recover flag. > > Of course, this is risky: INCOMPAT_* features are so for a reason, but > it will allow dirty ext3 filesystems to be mounted until we have a > working journal implementation. I had thought of adding some kind of > warning, but since GRUB mounts and umounts filesystems constantly, it > just cluttered the screen and I removed it. Hi, We must not quit if the journal flag is set, even if we don't handle it. grub-setup runs in a active system, the journal wouldn't be empty. If we just quit, we can't even install. --=20 Bean