[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/3] Use Chunk's geometry attr to access the parted Geometry.



---
 storage/partitioning.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 44bfd7d..d093a2a 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -1392,7 +1392,8 @@ def growPartitions(disks, partitions, free):
             # adjust the extended partition as needed
             # we will ony resize an extended partition that we created
             log.debug("extended: %s" % extended_geometry)
-            if extended_geometry and chunk.contains(extended_geometry):
+            if extended_geometry and \
+               chunk.geometry.contains(extended_geometry):
                 log.debug("setting up new geometry for extended on %s" % disk.name)
                 ext_start = 0
                 ext_end = 0
-- 
1.6.0.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]