parted/parted-fix-cciss-partition-naming.patch
Petr Uzel d279dd4849 - copy dummy bootcode to MBR only on x86 because it can cause
problems to certain ARM machine (bnc#769789)
  - add: dummy-bootcode-only-for-x86.patch

- fix informing the kernel about partitions on cciss devices
  (bnc#757225)
  - add: parted-fix-cciss-partition-naming.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=63
2012-07-03 13:40:05 +00:00

19 lines
859 B
Diff

Index: parted-2.4/libparted/arch/linux.c
===================================================================
--- parted-2.4.orig/libparted/arch/linux.c
+++ parted-2.4/libparted/arch/linux.c
@@ -2226,8 +2226,11 @@ _device_get_part_path (PedDevice *dev, i
result = zasprintf ("%.*s/part%d",
(int) (path_len - 5), dev->path, num);
} else {
- char const *p = (dev->type == PED_DEVICE_DAC960
- || dev->type == PED_DEVICE_CPQARRAY
+ const char *p;
+ if (dev->type == PED_DEVICE_CPQARRAY)
+ p = "p";
+ else
+ p = (dev->type == PED_DEVICE_DAC960
|| dev->type == PED_DEVICE_ATARAID
|| dev->type == PED_DEVICE_DM
|| isdigit (dev->path[path_len - 1])