From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MW4kE-0005SW-Dw for mharc-grub-devel@gnu.org; Wed, 29 Jul 2009 04:42:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MW4kC-0005Rs-6s for grub-devel@gnu.org; Wed, 29 Jul 2009 04:42:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MW4k6-0005Ra-VN for grub-devel@gnu.org; Wed, 29 Jul 2009 04:42:39 -0400 Received: from [199.232.76.173] (port=34334 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MW4k6-0005RU-LB for grub-devel@gnu.org; Wed, 29 Jul 2009 04:42:34 -0400 Received: from mx20.gnu.org ([199.232.41.8]:47918) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MW4k6-0007Us-7P for grub-devel@gnu.org; Wed, 29 Jul 2009 04:42:34 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MW4k4-0002np-VG for grub-devel@gnu.org; Wed, 29 Jul 2009 04:42:33 -0400 Received: from [85.180.16.90] (e180016090.adsl.alicedsl.de [85.180.16.90]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MKt72-1MW4k32VMz-0009aB; Wed, 29 Jul 2009 10:42:31 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: <20090728181234.GI32726@thorin> References: <1248617131.25072.13.camel@fz.local> <20090728181234.GI32726@thorin> Content-Type: text/plain Date: Wed, 29 Jul 2009 10:43:23 +0200 Message-Id: <1248857003.3729.0.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.27.4 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX19TxXaWlODIXuiriTfon7+osfh02R+cl1MtN6y 18FE8JcVgHt6gGpJa04pXwJv0q2F1WIULJFrZsm5GbD9zAwrEo ATHltOcPMX0JCoOWMi/QUjFIdO5MSMB X-Detected-Operating-System: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [PATCH] use UUID to map system devices to grub devices 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, 29 Jul 2009 08:42:40 -0000 Am Dienstag, den 28.07.2009, 20:12 +0200 schrieb Robert Millan: > On Sun, Jul 26, 2009 at 04:05:31PM +0200, Felix Zielcke wrote: > > As requested by Robert on IRC, this is a split from my dmraid patch. > > On dmraid devices HDIO_GETGEO returns 0 for all fields, so the current > > way of grub_util_biosdisk_get_grub_dev just can't work. > > So I use blkid to get the UUID of the device and then a new nested > > function to find out the grub device like search does. > > > > I think this is with intent from the kernel that it just returns 0's. > > Maybe it just can't distinguish between a device mapper setup which goes > > over multiple partitions or harddisks of different size not from one > > which goes only over complete harddisks with same size like in dmraid > > Hm but even if, I think it wouldn't help in case of RAID != 1. Sector > > count could be > then last sector of one disk or not? > > I keep thinking this is an overkill solution. We should to discuss more about > what's the problem we need to fix, and only ressort to this if we have no > other choice. > The problem is how do we map a device file to a grub device. Especially BSD partitions which only have numbers under Linux? I don't know how the devices are called under BSD. -- Felix Zielcke Proud Debian Maintainer