forked from pool/parted
14 lines
802 B
Diff
14 lines
802 B
Diff
Index: parted-1.9.0/libparted/arch/linux.c
|
|
===================================================================
|
|
--- parted-1.9.0.orig/libparted/arch/linux.c 2009-07-30 16:28:43.000000000 +0200
|
|
+++ parted-1.9.0/libparted/arch/linux.c 2009-07-30 16:28:49.000000000 +0200
|
|
@@ -2232,7 +2232,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;
|