Blame SOURCES/0018-libparted-Stop-converting-.-in-sys-path-to.patch

0cb0b9
From 6dc72201ff5b41c171863e6b8eb069b8f8c479cf Mon Sep 17 00:00:00 2001
0cb0b9
From: "Brian C. Lane" <bcl@redhat.com>
0cb0b9
Date: Fri, 7 Aug 2015 13:59:58 -0700
0cb0b9
Subject: [PATCH 18/18] libparted: Stop converting . in sys path to /
0cb0b9
0cb0b9
In _probe_sys_block it claimed that ! and . are replaced by / in sys
0cb0b9
paths, but according to the kernel code only ! is replaced (for cciss
0cb0b9
devices).
0cb0b9
0cb0b9
This is now causing problems with libnvdimm devices, the details are
0cb0b9
here:
0cb0b9
0cb0b9
https://git.kernel.org/cgit/linux/kernel/git/djbw/nvdimm.git/tree/Documentation/nvdimm/nvdimm.txt?h=libnvdimm-for-next
0cb0b9
(cherry picked from commit 579bd6878b07d8387451d36106ccf86d26818b77)
0cb0b9
---
0cb0b9
 libparted/arch/linux.c | 4 ++--
0cb0b9
 1 file changed, 2 insertions(+), 2 deletions(-)
0cb0b9
0cb0b9
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
0cb0b9
index d33c02d..20a7235 100644
0cb0b9
--- a/libparted/arch/linux.c
0cb0b9
+++ b/libparted/arch/linux.c
0cb0b9
@@ -2235,9 +2235,9 @@ _probe_sys_block ()
0cb0b9
 
0cb0b9
 		strcpy (dev_name, "/dev/");
0cb0b9
 		strcat (dev_name, dirent->d_name);
0cb0b9
-		/* in /sys/block, '/'s are replaced with '!' or '.' */
0cb0b9
+		/* in /sys/block, '/'s are replaced with '!' */
0cb0b9
 		for (ptr = dev_name; *ptr != '\0'; ptr++) {
0cb0b9
-			if (*ptr == '!' || *ptr == '.')
0cb0b9
+			if (*ptr == '!')
0cb0b9
 				*ptr = '/';
0cb0b9
 		}
0cb0b9
 		_ped_device_probe (dev_name);
0cb0b9
-- 
0cb0b9
2.4.3
0cb0b9