Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1FuxAm-0004pY-L8 for mharc-grub-devel@gnu.org; Mon, 26 Jun 2006 15:55:04 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FuxAj-0004nD-O1 for grub-devel@gnu.org; Mon, 26 Jun 2006 15:55:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FuxAe-0004kD-L9 for grub-devel@gnu.org; Mon, 26 Jun 2006 15:54:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FuxAe-0004k5-Hl for grub-devel@gnu.org; Mon, 26 Jun 2006 15:54:56 -0400 Received: from [82.94.249.43] (helo=neonescio.viaisn.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FuxMa-00051l-Mn for grub-devel@gnu.org; Mon, 26 Jun 2006 16:07:16 -0400 Received: from dijkstra.dekkers.cx ([2001:838:3ce::1] ident=Debian-exim) by neonescio.viaisn.org with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA:32 CV=0) (Exim 4.50 #1) id 1FuxAc-0004HP-Mu for grub-devel@gnu.org; Mon, 26 Jun 2006 21:54:54 +0200 Received: from localhost ([127.0.0.1] helo=dijkstra.dekkers.cx ident=jeroen) by dijkstra.dekkers.cx with esmtp (Exim 4.62) (envelope-from ) id 1FuxAb-0001QI-90 for grub-devel@gnu.org; Mon, 26 Jun 2006 21:54:53 +0200 Date: Mon, 26 Jun 2006 21:54:53 +0200 Message-ID: <87hd2766b6.wl%jeroen@vrijschrift.org> From: Jeroen Dekkers To: grub-devel@gnu.org User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: Branch for my Google SOC RAID and LVM work 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, 26 Jun 2006 19:55:02 -0000 Hi all, I just created a CVS branch ("google-soc2006") withthe work I've done so far for my Google SoC project. I currently have support for reading RAID0, RAID1 and RAID5 arrays (the most common ones) finished. The init function of the module currently scans all devices for a RAID superblock. This won't work when modules containing devices are added after the RAID module is loaded, but as far as I know GRUB should already know about all devices when the RAID module is loaded, so this shouldn't be a problem. The code also supports reading from degraded RAID arrays, it is be able to read things when the RAID1 array has only one disk and when the RAID5 array is missing one disk. The current code has some loose ends, those all marked with FIXMEs. First of all GRUB should probably also support less common RAID levels like RAID4, RAID6, RAID10 en linear mode. Secondly the RAID0 code currently assumes that all members of the array have the same size, but this doesn't have to be the case. Another issue is that since Linux 2.6 supports a new superblock layout which I've not implemented yet. Currently mdadm still creates old superblocks by default, so this shouldn't cause big problems at the moment. Linux 2.6 also added support for partitions on RAID arrays, this isn't implemented either. The last important issue is that RAID5 support different layouts for the parity, I've only implemented the default layout so far. Because this a Google SoC project, it has to be 100% my own work. So don't send me patches, I can't really do anything with them at this moment. If you try out the code and find problems, please report them and I'll fix them myself. The next thing I'm going to work on is adding support for RAID devices in grub-setup. It should automatically detect whether /boot is on a RAID device and set everything up accordingly when this is the case. Jeroen Dekkers