Blame SOURCES/0196-devmapper-getroot-use-makedev-instead-of-direct-shif.patch
|
|
6b3c76 |
From 5317bbcd5aa96b1c38d888ead78d640ec58d91a4 Mon Sep 17 00:00:00 2001
|
|
|
a85e8e |
From: Andrei Borzenkov <arvidjaar@gmail.com>
|
|
|
a85e8e |
Date: Sat, 7 Nov 2015 09:46:46 +0300
|
|
|
6b3c76 |
Subject: [PATCH 196/261] devmapper/getroot: use makedev instead of direct
|
|
|
6b3c76 |
shift
|
|
|
a85e8e |
|
|
|
a85e8e |
Fixes device detection with large number of devices.
|
|
|
a85e8e |
|
|
|
a85e8e |
Reported by Tim Wallberg <twalberg@comcast.net>
|
|
|
a85e8e |
|
|
|
a85e8e |
(cherry picked from commit 349a381df0ce2e809506f7b166bf952f97407330)
|
|
|
a85e8e |
|
|
|
a85e8e |
Resolves: rhbz#1279599
|
|
|
a85e8e |
---
|
|
|
a85e8e |
grub-core/osdep/devmapper/getroot.c | 3 +--
|
|
|
a85e8e |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
a85e8e |
|
|
|
a85e8e |
diff --git a/grub-core/osdep/devmapper/getroot.c b/grub-core/osdep/devmapper/getroot.c
|
|
|
6b3c76 |
index d02386b34..de3210232 100644
|
|
|
a85e8e |
--- a/grub-core/osdep/devmapper/getroot.c
|
|
|
a85e8e |
+++ b/grub-core/osdep/devmapper/getroot.c
|
|
|
a85e8e |
@@ -204,8 +204,7 @@ grub_util_devmapper_part_to_disk (struct stat *st,
|
|
|
a85e8e |
&major, &minor, 0))
|
|
|
a85e8e |
{
|
|
|
a85e8e |
*is_part = 1;
|
|
|
a85e8e |
- return grub_find_device ("/dev",
|
|
|
a85e8e |
- (major << 8) | minor);
|
|
|
a85e8e |
+ return grub_find_device ("/dev", makedev (major, minor));
|
|
|
a85e8e |
}
|
|
|
a85e8e |
*is_part = 0;
|
|
|
a85e8e |
return xstrdup (path);
|
|
|
6b3c76 |
--
|
|
|
6b3c76 |
2.13.5
|
|
|
6b3c76 |
|