Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757553Ab1DMAtn (ORCPT ); Tue, 12 Apr 2011 20:49:43 -0400 Received: from li9-11.members.linode.com ([67.18.176.11]:42599 "EHLO test.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756910Ab1DMAtm (ORCPT ); Tue, 12 Apr 2011 20:49:42 -0400 Date: Tue, 12 Apr 2011 20:49:38 -0400 From: "Ted Ts'o" To: Mark Lord Cc: Linux Kernel , linux-ext4@vger.kernel.org Subject: Re: CONFIG_EXT4_USE_FOR_EXT23: rootfs shows as ext2 instead of ext4 Message-ID: <20110413004938.GE3682@thunk.org> Mail-Followup-To: Ted Ts'o , Mark Lord , Linux Kernel , linux-ext4@vger.kernel.org References: <4DA48AF4.5080803@teksavvy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DA48AF4.5080803@teksavvy.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on test.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 948 Lines: 24 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. It's a cosemtic bug, I agree, but I'm not sure why you consider it dangerous. CONFIG_EXT4_USE_FOR_EXT23 means that ext4 registers itself as ext2 and/or ext3, if ext2 and/or ext3 are not configured into the kernel. Since the kernel tries to mount the file system as ext2, ext3, and then ext4, and uses whichever one works first. - Ted -- 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/