File parted-bsc1137259-fix-_part-error.patch of Package parted.30108

From: Lidong Zhong <lidong.zhong@.suse.com> 
Subject: Skip the partitions ended with _part
Patch-mainline: no, custom SUSE patch

Index: parted-3.1/libparted/arch/linux.c
===================================================================
--- parted-3.1.orig/libparted/arch/linux.c
+++ parted-3.1/libparted/arch/linux.c
@@ -626,6 +626,12 @@ _probe_dm_devices ()
 
                if (stat (buf, &st) != 0)
                        continue;
+               
+               /* Skip the partitions ended with _part
+                * which is created for compatibility reason(bsc#1137529)
+                */
+               if (strstr(buf, "_part") != NULL)
+                       continue;
 
                if (_is_dm_major(major(st.st_rdev)) && _is_dmraid_device (buf)
                    && !_dm_is_part(buf))
openSUSE Build Service is sponsored by