Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JUb1m-0004P7-VR for mharc-grub-devel@gnu.org; Thu, 28 Feb 2008 00:09:54 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUb1l-0004OT-EM for grub-devel@gnu.org; Thu, 28 Feb 2008 00:09:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUb1g-0004Ny-QQ for grub-devel@gnu.org; Thu, 28 Feb 2008 00:09:52 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUb1g-0004Nv-GS for grub-devel@gnu.org; Thu, 28 Feb 2008 00:09:48 -0500 Received: from mail.securedc.com ([70.86.221.226]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUb1f-0003K2-Vz for grub-devel@gnu.org; Thu, 28 Feb 2008 00:09:48 -0500 Received: (qmail 2458 invoked by uid 399); 28 Feb 2008 05:03:10 -0000 Received: from unknown (HELO Dexter) (58.71.7.245) by mail.securedc.com with ESMTPM; 28 Feb 2008 05:03:10 -0000 X-Originating-IP: 58.71.7.245 Message-ID: <00b201c879c8$7a2f00e0$9300a8c0@outsourcing.local> From: "Adrian Migraso" To: Date: Thu, 28 Feb 2008 13:12:08 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00AF_01C87A0B.85FE17B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 Subject: patch for [xfs, grub-probe -t fs] and a question about lvm 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: Thu, 28 Feb 2008 05:09:53 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_00AF_01C87A0B.85FE17B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi... can we add this patch... at least the first patch @ lines 249, i = was trying to grub-probe the xfs filesystem under the lvm, and got some = error... Also,... i have been trying to use the lvm.mod with the grub, the = problem is, my logical volumes are not detected by 'ls' command during = grub resucue> is lvm.mod ok? can i have a peek of how grub2 works? I mean its flow... thanks guys... --- 20080226/grub2/kern/disk.c 2008-02-08 12:22:51.000000000 +0000 +++ grub2/kern/disk.c 2008-02-26 15:58:58.000000000 +0000 @@ -246,7 +246,8 @@ for (dev =3D grub_disk_dev_list; dev; dev =3D dev->next) { - if ((dev->open) (raw, disk) =3D=3D GRUB_ERR_NONE) + grub_errno =3D (dev->open) (raw, disk); + if (grub_errno =3D=3D GRUB_ERR_NONE) break; else if (grub_errno =3D=3D GRUB_ERR_UNKNOWN_DEVICE) grub_errno =3D GRUB_ERR_NONE; @@ -364,7 +365,8 @@ grub_dprintf ("disk", "Reading `%s'...\n", disk->name); /* First of all, check if the region is within the disk. */ - if (grub_disk_check_range (disk, §or, &offset, size) !=3D = GRUB_ERR_NONE) + grub_errno =3D grub_disk_check_range (disk, §or, &offset, size); + if (grub_errno !=3D GRUB_ERR_NONE) { grub_error_push (); grub_dprintf ("disk", "Read out of range: sector 0x%llx (%s).\n", @@ -407,9 +409,9 @@ else { /* Otherwise read data from the disk actually. */ - if ((disk->dev->read) (disk, start_sector, - GRUB_DISK_CACHE_SIZE, tmp_buf) - !=3D GRUB_ERR_NONE) + grub_errno =3D (disk->dev->read) (disk, start_sector, + GRUB_DISK_CACHE_SIZE, tmp_buf); + if (grub_errno !=3D GRUB_ERR_NONE) { /* Uggh... Failed. Instead, just read necessary data. */ unsigned num; ------=_NextPart_000_00AF_01C87A0B.85FE17B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi... can we add this patch... at least = the first=20 patch @ lines 249, i was trying to grub-probe the xfs filesystem under = the lvm,=20 and got some error...
 
Also,... i have been trying to use the = lvm.mod with=20 the grub, the problem is, my logical volumes are not detected by 'ls' = command=20 during grub resucue>
 
is lvm.mod ok?
 
can i have a peek of how grub2 works? I = mean its=20 flow... thanks guys...
 
 
--- 20080226/grub2/kern/disk.c  = 2008-02-08=20 12:22:51.000000000 +0000
+++ grub2/kern/disk.c   2008-02-26 = 15:58:58.000000000 +0000
@@ -246,7 +246,8 @@
 
   for (dev =3D = grub_disk_dev_list; dev;=20 dev =3D dev->next)
    =20 {
-      if ((dev->open) (raw, disk) = =3D=3D=20 GRUB_ERR_NONE)
+      grub_errno =3D = (dev->open)=20 (raw, disk);
+      if (grub_errno =3D=3D=20 GRUB_ERR_NONE)
       =20 break;
       else if (grub_errno = =3D=3D=20 GRUB_ERR_UNKNOWN_DEVICE)
       =20 grub_errno =3D GRUB_ERR_NONE;
@@ -364,7 +365,8 @@
   = grub_dprintf=20 ("disk", "Reading `%s'...\n", disk->name);
 
   /* First of all, check if = the region=20 is within the disk.  */
-  if (grub_disk_check_range (disk, = &sector, &offset, size) !=3D GRUB_ERR_NONE)
+  = grub_errno =3D=20 grub_disk_check_range (disk, &sector, &offset, size);
+  = if=20 (grub_errno !=3D GRUB_ERR_NONE)
    =20 {
       grub_error_push=20 ();
       grub_dprintf ("disk", "Read = out of=20 range: sector 0x%llx (%s).\n",
@@ -407,9 +409,9=20 @@
      =20 else
       =20 {
          /* Otherwise = read=20 data from the disk actually. =20 */
-         if=20 ((disk->dev->read) (disk,=20 start_sector,
-         &= nbsp;           &n= bsp;         =20 GRUB_DISK_CACHE_SIZE,=20 tmp_buf)
-          =   =20 !=3D GRUB_ERR_NONE)
+         = grub_errno =3D (disk->dev->read) (disk,=20 start_sector,
+         &= nbsp;           &n= bsp;         =20 GRUB_DISK_CACHE_SIZE,=20 tmp_buf);
+         if = (grub_errno !=3D=20 GRUB_ERR_NONE)
         &= nbsp; =20 {
           &n= bsp; =20 /* Uggh... Failed. Instead, just read necessary data. =20 */
           &= nbsp; =20 unsigned num;
------=_NextPart_000_00AF_01C87A0B.85FE17B0--