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