OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/parted?expand=0&rev=105
18 lines
810 B
Diff
18 lines
810 B
Diff
---
|
|
libparted/arch/linux.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: parted-3.1/libparted/arch/linux.c
|
|
===================================================================
|
|
--- parted-3.1.orig/libparted/arch/linux.c
|
|
+++ parted-3.1/libparted/arch/linux.c
|
|
@@ -2370,7 +2370,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;
|