OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/parted?expand=0&rev=105
19 lines
772 B
Diff
19 lines
772 B
Diff
---
|
|
libparted/labels/dasd.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
Index: parted-3.1/libparted/labels/dasd.c
|
|
===================================================================
|
|
--- parted-3.1.orig/libparted/labels/dasd.c
|
|
+++ parted-3.1/libparted/labels/dasd.c
|
|
@@ -803,7 +803,8 @@ _primary_constraint (PedDisk* disk)
|
|
if (!ped_alignment_init (&end_align, -1,
|
|
disk->dev->hw_geom.sectors * sector_size))
|
|
return NULL;
|
|
- if (!ped_geometry_init (&max_geom, disk->dev, 0, disk->dev->length))
|
|
+ if (!ped_geometry_init (&max_geom, disk->dev, 2 * disk->dev->hw_geom.sectors * sector_size,
|
|
+ disk->dev->length - 2 * disk->dev->hw_geom.sectors * sector_size))
|
|
return NULL;
|
|
|
|
return ped_constraint_new(&start_align, &end_align, &max_geom,
|