parted/libparted-fix-NVDIMM-partition-naming.patch
Sebastian Parschauer 39139f7681 Accepting request 578406 from home:sparschauer:branches:Base:System
- libparted: Fix partition device naming for all devices
  (bsc#1078820, bsc#1081547)
- libparted: Canonicalize /dev/md/ paths (bsc#1078820)

OBS-URL: https://build.opensuse.org/request/show/578406
OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=139
2018-02-20 15:38:03 +00:00

24 lines
930 B
Diff

From: Sebastian Parschauer <sparschauer@suse.de>
Date: Mon, 23 Oct 2017 17:47:47 +0200
Subject: libparted: Fix NVDIMM partition naming
References: bsc#1064446
Patch-mainline: no, required to fix custom SUSE device naming
Signed-off-by: Sebastian Parschauer <sparschauer@suse.de>
---
libparted/arch/linux.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
index 1aef651..cf6c754 100644
--- a/libparted/arch/linux.c
+++ b/libparted/arch/linux.c
@@ -2439,6 +2439,7 @@ _device_get_part_path (PedDevice const *dev, int num)
dev->type == PED_DEVICE_CPQARRAY ||
dev->type == PED_DEVICE_DAC960 ||
dev->type == PED_DEVICE_NVME ||
+ dev->type == PED_DEVICE_PMEM ||
dev->type == PED_DEVICE_SDMMC)
p = "p";
else if (dev->type == PED_DEVICE_DM)