2017-12-22 17:53:51 +01:00
|
|
|
From: Petr Uzel <petr.uzel@suse.cz>
|
|
|
|
Subject: libparted: Fix NVMe device naming
|
|
|
|
References: bsc#982169
|
|
|
|
Patch-mainline: no, required to fix custom SUSE device naming
|
2016-06-14 13:11:50 +02:00
|
|
|
---
|
|
|
|
libparted/arch/linux.c | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
Index: parted-3.2/libparted/arch/linux.c
|
|
|
|
===================================================================
|
|
|
|
--- parted-3.2.orig/libparted/arch/linux.c
|
|
|
|
+++ parted-3.2/libparted/arch/linux.c
|
|
|
|
@@ -2411,6 +2411,7 @@ _device_get_part_path (PedDevice const *
|
|
|
|
} else {
|
|
|
|
const char *p;
|
|
|
|
if (dev->type == PED_DEVICE_CPQARRAY ||
|
|
|
|
+ dev->type == PED_DEVICE_NVME ||
|
|
|
|
dev->type == PED_DEVICE_SDMMC)
|
|
|
|
p = "p";
|
|
|
|
else if (dev->type == PED_DEVICE_DM)
|