[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 3/8] Handle partition allocation failures due to alignment adjustments.
- From: David Lehman <dlehman redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH 3/8] Handle partition allocation failures due to alignment adjustments.
- Date: Wed, 15 Jun 2011 17:32:51 -0500
Resolves: rhbz#693271
---
pyanaconda/storage/partitioning.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
index 0051b93..b3847c3 100644
--- a/pyanaconda/storage/partitioning.py
+++ b/pyanaconda/storage/partitioning.py
@@ -830,6 +830,8 @@ def addPartition(disklabel, free, part_type, size):
if not disklabel.endAlignment.isAligned(free, end):
end = disklabel.endAlignment.alignNearest(free, end)
log.debug("adjusted length from %d to %d" % (length, end - start + 1))
+ if start > end:
+ raise PartitioningError("unable to allocate aligned partition")
new_geom = parted.Geometry(device=disklabel.partedDevice,
start=start,
--
1.7.3.4
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]