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