forked from pool/parted
18 lines
810 B
Diff
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;
|