FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 06-15-2011, 10:32 PM
David Lehman
 
Default Maximize extended partition even when logical reqs' sizes are capped.

Resolves: rhbz#698429
---
pyanaconda/storage/partitioning.py | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
index b3847c3..41ab5c5 100644
--- a/pyanaconda/storage/partitioning.py
+++ b/pyanaconda/storage/partitioning.py
@@ -1652,7 +1652,6 @@ def growPartitions(disks, partitions, free):
chunk.geometry.contains(extended_geometry):
log.debug("setting up new geometry for extended on %s" % disk.name)
ext_start = 0
- ext_end = 0
for (partition, device) in new_partitions:
if partition.type != parted.PARTITION_LOGICAL:
continue
@@ -1663,12 +1662,9 @@ def growPartitions(disks, partitions, free):
# (partition.geometry.start is already aligned)
ext_start = partition.geometry.start - disklabel.alignment.grainSize

- if not ext_end or partition.geometry.end > ext_end:
- ext_end = partition.geometry.end
-
new_geometry = parted.Geometry(device=disklabel.partedDevice,
start=ext_start,
- end=ext_end)
+ end=chunk.geometry.end)
log.debug("new geometry for extended: %s" % new_geometry)
new_extended = parted.Partition(disk=disklabel.partedDisk,
type=parted.PARTITION_EXTENDED,
--
1.7.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 11:49 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org