forked from pool/parted
Copy from home:puzel:branches:Base:System/parted via accept of submit request 30480 revision 2. Request was accepted with message: OBS-URL: https://build.opensuse.org/request/show/30480 OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=14
23 lines
984 B
Diff
23 lines
984 B
Diff
Index: parted-1.9.0/libparted/arch/linux.c
|
|
===================================================================
|
|
--- parted-1.9.0.orig/libparted/arch/linux.c 2010-01-25 16:32:09.000000000 +0100
|
|
+++ parted-1.9.0/libparted/arch/linux.c 2010-01-25 16:33:18.000000000 +0100
|
|
@@ -2296,7 +2296,7 @@ _blkpg_remove_partition (PedDisk* disk,
|
|
|
|
/*
|
|
* The number of partitions that a device can have depends on the kernel.
|
|
- * If we don't find this value in /sys/block/DEV/range, we will use our own
|
|
+ * If we don't find this value in /sys/block/DEV/ext_range, we will use our own
|
|
* value.
|
|
*/
|
|
static unsigned int
|
|
@@ -2307,7 +2307,7 @@ _device_get_partition_range(PedDevice* d
|
|
FILE* fp;
|
|
bool ok;
|
|
|
|
- r = snprintf(path, sizeof(path), "/sys/block/%s/range",
|
|
+ r = snprintf(path, sizeof(path), "/sys/block/%s/ext_range",
|
|
last_component(dev->path));
|
|
if(r < 0 || r >= sizeof(path))
|
|
return MAX_NUM_PARTS;
|