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