summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-11-28 17:39:46 -0500
committerJeremy Katz <katzj@redhat.com>2007-11-29 16:12:01 -0500
commit349d9984e997529e88dcfb686580a6443f7e705a (patch)
treea2dfbbb7557973735a113cda364c5b15da6c820c /partitions.py
parentbd5b1fa617aa81e6dd475b3513158b9a1f917a5e (diff)
downloadanaconda-349d9984e997529e88dcfb686580a6443f7e705a.tar.gz
anaconda-349d9984e997529e88dcfb686580a6443f7e705a.tar.xz
anaconda-349d9984e997529e88dcfb686580a6443f7e705a.zip
Add infrastructure for partition resizing
We add support to preexisting partitions to be resized by adjusting their partition spec and then acting on the changes within the main partitioning engine. Keep track of what the maximum size for a preexisting partitition is so that we don't have to check in the UI Filesystems can claim to be resizable and implement the resize() method as well as the getMinimumSize() method
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/partitions.py b/partitions.py
index ba5b103d8..25871a7e0 100644
--- a/partitions.py
+++ b/partitions.py
@@ -202,6 +202,7 @@ class Partitions:
drive = drive,
format = format)
spec.device = fsset.PartedPartitionDevice(part).getDevice()
+ spec.maxResizeSize = partedUtils.getMaxAvailPartSizeMB(part)
# set label if makes sense
if ptype and ptype.isMountable():