]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Support probing multipath disks.
authorColin Watson <cjwatson@ubuntu.com>
Tue, 25 Jan 2011 16:51:23 +0000 (16:51 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Tue, 25 Jan 2011 16:51:23 +0000 (16:51 +0000)
grub-core/kern/emu/hostdisk.c

index eb84d0220752f0131d3d22a88229775850c1e3b3..ea42d945eb53eb941603644d8a4ae774bd915740 100644 (file)
@@ -1271,6 +1271,16 @@ convert_system_partition_to_system_disk (const char *os_dev, struct stat *st)
              node = NULL;
              goto devmapper_out;
            }
+         if (strncmp (node_uuid, "mpath-", 6) == 0)
+           {
+             /* Multipath partitions have partN-mpath-* UUIDs, and are
+                linear mappings so are handled by
+                grub_util_get_dm_node_linear_info.  Multipath disks are not
+                linear mappings and must be handled specially.  */
+             grub_dprintf ("hostdisk", "%s is a multipath disk\n", path);
+             mapper_name = dm_tree_node_get_name (node);
+             goto devmapper_out;
+           }
          if (strncmp (node_uuid, "DMRAID-", 7) != 0)
            {
              int major, minor;