parted/fix-dm-partition-name.patch

14 lines
741 B
Diff

Index: parted-2.3/libparted/arch/linux.c
===================================================================
--- parted-2.3.orig/libparted/arch/linux.c 2010-07-08 13:33:05.000000000 +0200
+++ parted-2.3/libparted/arch/linux.c 2010-07-08 13:33:13.000000000 +0200
@@ -2194,7 +2194,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);