From 349d9984e997529e88dcfb686580a6443f7e705a Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 28 Nov 2007 17:39:46 -0500 Subject: 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 --- partitions.py | 1 + 1 file changed, 1 insertion(+) (limited to 'partitions.py') 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(): -- cgit