[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Keep the end sector aligned when resizing partitions (#560647)
- From: Hans de Goede <hdegoede redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: [PATCH] Keep the end sector aligned when resizing partitions (#560647)
- Date: Wed, 3 Feb 2010 14:23:32 +0100
This is esp. important with DASD's as these will only accept properly
aligned partitions.
---
storage/devices.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/storage/devices.py b/storage/devices.py
index 9e95084..a0fe78c 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1276,6 +1276,9 @@ class PartitionDevice(StorageDevice):
newGeometry = parted.Geometry(device=currentDev,
start=currentGeom.start,
length=newLen)
+ # and align the end sector
+ newGeometry.end = self.disk.format.endAlignment.alignDown(newGeometry,
+ newGeometry.end)
constraint = parted.Constraint(exactGeom=newGeometry)
return (constraint, newGeometry)
--
1.6.6
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]