diff --git a/parted-use-ext-range.patch b/parted-use-ext-range.patch new file mode 100644 index 0000000..3abfe95 --- /dev/null +++ b/parted-use-ext-range.patch @@ -0,0 +1,22 @@ +Index: parted-2.4/libparted/arch/linux.c +=================================================================== +--- parted-2.4.orig/libparted/arch/linux.c ++++ parted-2.4/libparted/arch/linux.c +@@ -2413,7 +2413,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 +@@ -2424,7 +2424,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; diff --git a/parted.changes b/parted.changes index 6d280a5..35cdc11 100644 --- a/parted.changes +++ b/parted.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 5 12:08:48 UTC 2011 - puzel@suse.com + +- add parted-use-ext-range.patch (bnc#715695) + ------------------------------------------------------------------- Thu Aug 25 10:22:09 UTC 2011 - puzel@novell.com diff --git a/parted.spec b/parted.spec index 37fcab3..824c2c6 100644 --- a/parted.spec +++ b/parted.spec @@ -41,6 +41,7 @@ Patch11: do-not-create-dm-nodes.patch Patch12: more-reliable-informing-the-kernel.patch Patch13: parted-2.4-ncursesw6.patch Patch14: parted-gpt-sync-mbr-label.patch +Patch15: parted-use-ext-range.patch Requires: /sbin/udevadm BuildRequires: check-devel BuildRequires: device-mapper-devel >= 1.02.33 @@ -105,6 +106,7 @@ to develop applications that require these. %patch12 -p1 %patch13 %patch14 -p1 +%patch15 -p1 %build export CFLAGS="%{optflags} `ncursesw6-config --cflags`"