summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-05-23 18:54:09 +0000
committerJeremy Katz <katzj@redhat.com>2005-05-23 18:54:09 +0000
commit7e53c1e379dbd1b52493e95ef031fe80cd89dda9 (patch)
treea95ac895f7415c2d911ba80db037e5479771e203
parent2370b8457724a1ba54f49af44d0ea138dd402371 (diff)
downloadanaconda-7e53c1e379dbd1b52493e95ef031fe80cd89dda9.tar.gz
anaconda-7e53c1e379dbd1b52493e95ef031fe80cd89dda9.tar.xz
anaconda-7e53c1e379dbd1b52493e95ef031fe80cd89dda9.zip
2005-05-23 Jeremy Katz <katzj@redhat.com>
* autopart.py (partlist.getFreeSpace): Fix problem Chris and Paul saw on Friday where manual partition growing would stop at the size of the partition. When imposing a max size based on the free sectors available, it should remember how big the part originally was.
-rw-r--r--ChangeLog5
-rw-r--r--autopart.py4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e6c36f37..8e1f83c39 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-05-23 Jeremy Katz <katzj@redhat.com>
+ * autopart.py (partlist.getFreeSpace): Fix problem Chris and Paul
+ saw on Friday where manual partition growing would stop at the
+ size of the partition. When imposing a max size based on the free
+ sectors available, it should remember how big the part originally was.
+
* kickstart.py (Kickstart.setGroupSelection): Allow excluding
packages based on arch (Dave Lehman, #158370)
diff --git a/autopart.py b/autopart.py
index b06f6d11f..e36d2e5d6 100644
--- a/autopart.py
+++ b/autopart.py
@@ -791,11 +791,11 @@ def growParts(diskset, requests, newParts):
maxfree = largestFree[drive]
if maxsect > largestFree[drive]:
- maxsect = long(maxfree)
+ maxsect = long(maxfree) + startSize
imposedMax = 1
# print "freesize, max, maxfree = ",freeSize[drive],maxsect, maxfree
-# print "freeSizeMB, maxMB = ", freeSize[drive] * sector_size/(1024.0 * 1024.0), maxsect * sector_size/(1024.0*1024.0), largestFree[drive]
+# print "freeSizeMB, maxMB = ", freeSize[drive] * sector_size/(1024.0 * 1024.0), maxsect * sector_size/(1024.0*1024.0), largestFree[drive] * sector_size/(1024.0*1024.0)
# print "startsize = ",startSize
min = startSize