parted/fix-error-informing-the-kernel.patch
Petr Uzel eb8d6edfbe - add fix-error-informing-the-kernel.patch:
Informing the kernel about partition changes still fails if first
  logical partition starts right after the extended partition. Fix
  it.

OBS-URL: https://build.opensuse.org/package/show/Base:System/parted?expand=0&rev=69
2012-11-21 15:11:08 +00:00

18 lines
810 B
Diff

---
libparted/arch/linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: parted-2.4/libparted/arch/linux.c
===================================================================
--- parted-2.4.orig/libparted/arch/linux.c
+++ parted-2.4/libparted/arch/linux.c
@@ -2376,7 +2376,7 @@ _blkpg_add_partition (PedDisk* disk, con
linux_part.start = part->geom.start * disk->dev->sector_size;
/* see fs/partitions/msdos.c:msdos_partition(): "leave room for LILO" */
if (part->type & PED_PARTITION_EXTENDED)
- linux_part.length = part->geom.length == 1 ? 512 : 1024;
+ linux_part.length = PED_SECTOR_SIZE_DEFAULT;
else
linux_part.length = part->geom.length * disk->dev->sector_size;
linux_part.pno = part->num;