diff options
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/autopart.py b/autopart.py index 6535035f1..a104217d0 100644 --- a/autopart.py +++ b/autopart.py @@ -362,6 +362,7 @@ def growParts(diskset, requests, newParts): growList = growable[drive] sector_size = diskset.disks[drive].dev.sector_size + cylsectors = diskset.disks[drive].dev.sectors*diskset.disks[drive].dev.heads # sort in order of request size, consider biggest first n = 0 @@ -448,7 +449,11 @@ def growParts(diskset, requests, newParts): lastDiff = diff diff = max - min - cur = max - (diff / 2) + + if diff < cylsectors: + cur = max + else: + cur = max - (diff / 2) inner_iter = inner_iter + 1 ## print diskset.diskState() |