File use-ext-range.patch of Package parted

Index: parted-1.9.0/libparted/arch/linux.c
===================================================================
--- parted-1.9.0.orig/libparted/arch/linux.c	2010-04-09 13:53:19.000000000 +0200
+++ parted-1.9.0/libparted/arch/linux.c	2010-04-09 13:53:24.000000000 +0200
@@ -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;
openSUSE Build Service is sponsored by