parted/libparted-linux-pmem-path.patch
Marcus Meissner 150f659587 Accepting request 792521 from home:anicka:branches:Base:System
- print maximum number of partitions for yast
  (bsc#1168756, bsc#1161783) 
 - add parted-print-max-partitions-for-yast.patch
- make parted work with pmemXs devices (bsc#1164260)
 - add libparted-linux-pmem-path.patch

OBS-URL: https://build.opensuse.org/request/show/792521
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=145
2020-04-19 13:06:12 +00:00

16 lines
787 B
Diff

libparted/arch/linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: parted-3.3/libparted/arch/linux.c
===================================================================
--- parted-3.3.orig/libparted/arch/linux.c
+++ parted-3.3/libparted/arch/linux.c
@@ -2489,7 +2489,7 @@ _device_get_part_path (PedDevice const *
dev->type == PED_DEVICE_CPQARRAY ||
dev->type == PED_DEVICE_DAC960 ||
dev->type == PED_DEVICE_NVME ||
- dev->type == PED_DEVICE_PMEM ||
+ ((dev->type == PED_DEVICE_PMEM) && (!isdigit (devpath[path_len -1 ]))) ||
dev->type == PED_DEVICE_SDMMC)
p = "p";
else if (dev->type == PED_DEVICE_DM)