Blame SOURCES/0166-Handle-rssd-storage-devices.patch

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