From 7e53c1e379dbd1b52493e95ef031fe80cd89dda9 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 23 May 2005 18:54:09 +0000 Subject: 2005-05-23 Jeremy Katz * 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. --- ChangeLog | 5 +++++ autopart.py | 4 ++-- 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 + * 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 -- cgit