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

[PATCH] Only check that extended's start sector is within the chunk. (#565692)



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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 87154ee..f00b645 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -1439,8 +1439,10 @@ 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)
+            # only check the start sector of the extended because its end
+            # sector is not aligned
             if extended_geometry and \
-               chunk.geometry.contains(extended_geometry):
+               chunk.geometry.containsSector(extended_geometry.start):
                 log.debug("setting up new geometry for extended on %s" % disk.name)
                 ext_start = 0
                 ext_end = 0
-- 
1.6.6


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