[rhel6-branch][PATCH] Use correct error message when running out of partition slots (#859420)

Martin Kolman mkolman at redhat.com
Wed Jul 17 11:26:11 UTC 2013


When running out of partition slots, make sure the error dialog
correctly reports "no free slots" and not "no free space".

Signed-off-by: Martin Kolman <mkolman at redhat.com>
---
 storage/partitioning.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 2daa4bb..a42906a 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -1194,6 +1194,10 @@ def allocatePartitions(storage, disks, partitions, freespace):
                 log.debug("found free space for bootable request")
                 break
 
+        if getNextPartitionType(disklabel.partedDisk) is None:
+            raise PartitioningError("no free partition slots on %s" % 
+                                    _disk.name)
+
         if free is None:
             raise PartitioningError("not enough free space on disks")
 
-- 
1.8.3.1



More information about the anaconda-patches mailing list