parted/fix-dm-partition-name.patch

14 lines
747 B
Diff

Index: parted-1.9.0/libparted/arch/linux.c
===================================================================
--- parted-1.9.0.orig/libparted/arch/linux.c 2009-07-30 16:28:49.000000000 +0200
+++ parted-1.9.0/libparted/arch/linux.c 2009-07-30 16:28:57.000000000 +0200
@@ -2095,7 +2095,7 @@ _device_get_part_path (PedDevice* dev, i
|| dev->type == PED_DEVICE_ATARAID
|| dev->type == PED_DEVICE_DM
|| isdigit (dev->path[path_len - 1]))
- snprintf (result, result_len, "%sp%d", dev->path, num);
+ snprintf (result, result_len, "%s_part%d", dev->path, num);
else
snprintf (result, result_len, "%s%d", dev->path, num);