Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756017Ab1DMSRR (ORCPT ); Wed, 13 Apr 2011 14:17:17 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:47461 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751801Ab1DMSRQ (ORCPT ); Wed, 13 Apr 2011 14:17:16 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=HCpHF+98LSTsrvDWpy9WnJh6+cfFE2/lTDI2rMZup4as7xeGK9EvmghM/LfDoC+OhV vfJYOBqLjSJNtfzE1g3+TLLwlhpA2JGwmi5A1TegbgoRW8EGtAC0VZJWHxloinVXXGCJ rSJs0ZmqQEmcWYevUrOa6EmJpYxxhqkLbx3ZA= Message-ID: <4DA5E8A6.7080304@gmail.com> Date: Wed, 13 Apr 2011 14:17:10 -0400 From: Ric Wheeler User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110403 Fedora/3.1.9-6.fc15 Thunderbird/3.1.9 MIME-Version: 1.0 To: John Stoffel CC: "Ted Ts'o" , Mark Lord , Linux Kernel , linux-ext4@vger.kernel.org Subject: Re: CONFIG_EXT4_USE_FOR_EXT23: rootfs shows as ext2 instead of ext4 References: <4DA48AF4.5080803@teksavvy.com> <20110413004938.GE3682@thunk.org> <19877.54035.501749.870641@quad.stoffel.home> In-Reply-To: <19877.54035.501749.870641@quad.stoffel.home> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1629 Lines: 40 On 04/13/2011 12:45 PM, John Stoffel wrote: >>>>>> "Ted" == Ted Ts'o writes: > Ted> On Tue, Apr 12, 2011 at 01:25:08PM -0400, Mark Lord wrote: >>> Ted et al. >>> >>> I've only just noticed this, so I have no idea how long it has been this way. >>> >>> When I build a kernel with CONFIG_EXT4_USE_FOR_EXT23=y and boot from it, >>> the ext4 root filesystem shows up as "ext2" mode, rather than "ext4". >>> >>> This looks very wrong to me, and quite dangerous. > Ted> It's a cosemtic bug, I agree, but I'm not sure why you consider it > Ted> dangerous. > > Ted> CONFIG_EXT4_USE_FOR_EXT23 means that ext4 registers itself as > Ted> ext2 and/or ext3, if ext2 and/or ext3 are not configured into the > Ted> kernel. Since the kernel tries to mount the file system as ext2, > Ted> ext3, and then ext4, and uses whichever one works first. > > Should it instead be: CONFIG_EXT4_MASQUERADE_AS_EXT23 instead, so > it's blindingly obvious what's going on here. > > John No - the idea is to have use eliminate duplicate code and still be able to run ext2 and ext3 in the same way. How close we come to that goal will probably vary between ext2 and ext3 now but it would be great to get that done eventually. We did discuss this at LSF last week and we had some enthusiasm for keeping ext2 code around forever more or less as "the simple" file system template :) Ric -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/