Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KJCka-0001Td-B6 for mharc-grub-devel@gnu.org; Wed, 16 Jul 2008 15:33:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJCkZ-0001TM-3C for grub-devel@gnu.org; Wed, 16 Jul 2008 15:33:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJCkX-0001Sl-H0 for grub-devel@gnu.org; Wed, 16 Jul 2008 15:33:18 -0400 Received: from [199.232.76.173] (port=58525 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJCkX-0001Sa-Ao for grub-devel@gnu.org; Wed, 16 Jul 2008 15:33:17 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:60202) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KJCkW-0005kO-Mw for grub-devel@gnu.org; Wed, 16 Jul 2008 15:33:17 -0400 Received: from fz (e180023049.adsl.alicedsl.de [85.180.23.49]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1KJCkU3qF8-00035o; Wed, 16 Jul 2008 21:33:15 +0200 Message-ID: From: "Felix Zielcke" To: "The development of GRUB 2" References: <20080702142245.GA21064@thorin><1215027160.9353.125.camel@localhost><20080703140211.GA19341@thorin><1215104875.8123.23.camel@localhost><20080704000829.GE4074@thorin><1215135163.26019.44.camel@localhost><20080704142125.GC2663@thorin><1215182702.26019.130.camel@localhost><20080704185723.GB32625@thorin><1215204095.26019.142.camel@localhost><20080705120757.GA1647@thorin><1215282973.26019.183.camel@localhost><1216220945.13612.13.camel@localhost><1216226289.13612.38.camel@localhost> <1216235242.13612.51.camel@localhost> Date: Wed, 16 Jul 2008 21:33:07 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 12.0.1606 X-MimeOLE: Produced By Microsoft MimeOLE V12.0.1606 X-Provags-ID: V01U2FsdGVkX1/MMqobFIzRojAR9fcdtXrF+Tr55WT+nUi9m+r kIBXfHdLpX7o28dxYt7zFpfb2akw+aucmBTJetolgx87s5rVSd xTRWsU8x25VlgIXp2cLtSWhfIhObOPI X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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: Wed, 16 Jul 2008 19:33:19 -0000 From: "JavierMartín" Sent: Wednesday, July 16, 2008 9:07 PM To: "The development of GRUB 2" Subject: Re: grub-probe detects ext4 wronly as ext2 > OK, so this is what I get from your 3 posts, and my proposals for the > driver future: > * meta_bg is a deprecated feature and is incompatible with > resize_inode, which is used by default in ext4 and can be used by all > other extN filesystems. We cannot safely ignore it since it signals an > incompatible change in one of the fs descriptors, so the reading code > might not be able to locate (meta)data on disk. I advocate _rejecting_ > volumes with it (given that it's no longer being generated by any > "standard" tool) until someone writes a patch to support it. resize_inode is not just enabled for ext4 but for every extN by mke2fs.conf Either check your own /etc/mke2fs.conf or see [0] which is the newest and so has all the ext4 features in it :) I can't remember ever seeing that meta_bg but I do remember that resize_inode wasn't just added now in the newest e2fsprogs The release-notes unfortunatly don't say when it was added or at least I didn't found that with searching for resize_inode > * flex_bg seemingly allows certain metadata structures to be > located at > places other than their default positions. However, given that it is > only used on volumes quite filled with bad blocks, I think we can (at > least temporarily) _ignore_ it, but truly supporting it would be a Good > Thing (tm) For me currently it works but that's why I added that others should test that. At least on this list only I and Bean tested this and I think Bean just tested this with my 30 MB image I gave him, where grub-fstest failed to read the Linux Kernel I don't know what this comment on mke2fs(8) about flex_bg means (use with -G option to group meta-data in order to create a large virtual block group). Oh, I now saw in that mail I forgot to copy the text from that -G option and the raw sourcecode of the manpage I linked there isn't really easy to read -G " number-of-groups" Specify the number of block goups that will be packed together to create one large virtual block group on an ext4 filesystem. This improves meta-data locality and performance on meta-data heavy workloads. The number of goups must be a power of 2 and may only be specified if the flex_bg filesystem feature is enabled. But because this grouping needs flex_bg enabled, and flex_bg is INCOMPAT, there's maybe a reason grub needs to support it. Maybe I'll try it out if grub fails to boot with that -G option used > * uninit_bg might already be supported (we should check, though, > with > bigger partitions) and is not an incompat flag, so my patch does not > affect its handling. I've one 8 GB ext4 where ~ 3 GB are used and another 8 GB ext4 where just ~700 MB are used Both have uninit_bg and flex_bg and grub works with them But because I don't use them much, proberbly grub doestn't even reach the uninitialized blockgroups/inode tables [0] http://git.kernel.org/?p=fs/ext2/e2fsprogs.git;a=blob;f=misc/mke2fs.conf;hb=HEAD