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

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