78e1a1
From 8d3f2f0f389efbb9ed5da0c4f90fc82d104163c1 Mon Sep 17 00:00:00 2001
0ac23e
From: Peter Jones <pjones@redhat.com>
0ac23e
Date: Tue, 30 Jun 2015 15:50:41 -0400
78e1a1
Subject: [PATCH 127/216] Handle rssd storage devices.
0ac23e
0ac23e
Resolves: rhbz#1087962
0ac23e
0ac23e
Signed-off-by: Peter Jones <pjones@redhat.com>
0ac23e
---
0ac23e
 grub-core/osdep/linux/getroot.c | 13 +++++++++++++
0ac23e
 1 file changed, 13 insertions(+)
0ac23e
0ac23e
diff --git a/grub-core/osdep/linux/getroot.c b/grub-core/osdep/linux/getroot.c
ec4acb
index 90d92d3ad5c..6d9f4e5faa2 100644
0ac23e
--- a/grub-core/osdep/linux/getroot.c
0ac23e
+++ b/grub-core/osdep/linux/getroot.c
bc092b
@@ -921,6 +921,19 @@ grub_util_part_to_disk (const char *os_dev, struct stat *st,
0ac23e
 	  return path;
0ac23e
 	}
0ac23e
 
0ac23e
+      /* If this is an rssd device. */
0ac23e
+      if ((strncmp ("rssd", p, 4) == 0) && p[4] >= 'a' && p[4] <= 'z')
0ac23e
+	{
0ac23e
+	  char *pp = p + 4;
0ac23e
+	  while (*pp >= 'a' && *pp <= 'z')
0ac23e
+	    pp++;
0ac23e
+	  if (*pp)
0ac23e
+	    *is_part = 1;
0ac23e
+	  /* /dev/rssd[a-z]+[0-9]* */
0ac23e
+	  *pp = '\0';
0ac23e
+	  return path;
0ac23e
+	}
0ac23e
+
0ac23e
       /* If this is a loop device */
0ac23e
       if ((strncmp ("loop", p, 4) == 0) && p[4] >= '0' && p[4] <= '9')
0ac23e
 	{
0ac23e
-- 
ec4acb
2.15.0
0ac23e