commit-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[2153] * util/hostdisk.c (convert_system_partition_to_system_disk):


From: David S. Miller
Subject: [2153] * util/hostdisk.c (convert_system_partition_to_system_disk):
Date: Thu, 30 Apr 2009 13:21:14 +0000

Revision: 2153
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2153
Author:   davem
Date:     2009-04-30 13:21:14 +0000 (Thu, 30 Apr 2009)
Log Message:
-----------
        * util/hostdisk.c (convert_system_partition_to_system_disk):
        Handle virtual disk devices named /dev/vdiskX as found on sparc
        and powerpc.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/util/hostdisk.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog       2009-04-30 13:17:10 UTC (rev 2152)
+++ trunk/grub2/ChangeLog       2009-04-30 13:21:14 UTC (rev 2153)
@@ -1,5 +1,9 @@
 2009-04-30  David S. Miller  <address@hidden>
 
+       * util/hostdisk.c (convert_system_partition_to_system_disk):
+       Handle virtual disk devices named /dev/vdiskX as found on sparc
+       and powerpc.
+
        * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
        lettered partition specifier is found, convert to numbered.
 

Modified: trunk/grub2/util/hostdisk.c
===================================================================
--- trunk/grub2/util/hostdisk.c 2009-04-30 13:17:10 UTC (rev 2152)
+++ trunk/grub2/util/hostdisk.c 2009-04-30 13:21:14 UTC (rev 2153)
@@ -767,6 +767,13 @@
        }
       
       /* If this is an IDE, SCSI or Virtio disk.  */
+      if (strncmp ("vdisk", p, 5) == 0
+         && p[5] >= 'a' && p[5] <= 'z')
+       {
+         /* /dev/vdisk[a-z][0-9]* */
+         p[6] = '\0';
+         return path;
+       }
       if ((strncmp ("hd", p, 2) == 0
           || strncmp ("vd", p, 2) == 0
           || strncmp ("sd", p, 2) == 0)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]