Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OUg47-0007Jk-Hm for mharc-grub-devel@gnu.org; Fri, 02 Jul 2010 09:13:59 -0400 Received: from [140.186.70.92] (port=32824 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUg44-0007IY-HF for grub-devel@gnu.org; Fri, 02 Jul 2010 09:13:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUg42-0003eG-74 for grub-devel@gnu.org; Fri, 02 Jul 2010 09:13:56 -0400 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:48190) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUg42-0003dz-0Y for grub-devel@gnu.org; Fri, 02 Jul 2010 09:13:54 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost02.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1OUg3z-0001S9-E9 for grub-devel@gnu.org; Fri, 02 Jul 2010 13:13:51 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1OUg3y-0003xH-00; Fri, 02 Jul 2010 14:13:50 +0100 Date: Fri, 2 Jul 2010 14:13:49 +0100 From: Colin Watson To: grub-devel@gnu.org Message-ID: <20100702131348.GX21862@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost02-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: mdadm 1.x device naming X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2010 13:13:57 -0000 I've been looking at Felix's raid branch which adds support for mdadm metadata version 1.x, and trying to bring it up to date. The first thing I noticed was an issue with device naming. With mdadm metadata 0.9, md devices were just numbered. Easy. With mdadm metadata 1.x, devices can also be named, which gives you things like /dev/md/home. (There's also a "homehost" quirk for arrays that can be attached to multiple hosts; I propose to ignore this for now.) In many ways this is better. Named devices means that you're not relying on enumeration which means that devices aren't going to move around, which is always good for GRUB. Thus, I don't think we should invent an enumeration scheme and I certainly don't think we should require entries in device.map to map /dev/md/home to (md0), or whatever; that just takes us back to the bad old days. However, we do need some way to name the device in GRUB. Does anyone object to this simple scheme? /dev/md/NAME => (md/NAME) all other md device name formats as before As far as I'm aware, we don't use slashes in GRUB device names right now, so this is a bit novel; but I wanted to minimise the chance of clashes and confusion, and I don't believe using a slash should actually do any harm. Thanks, -- Colin Watson [cjwatson@ubuntu.com]