[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH 9/9] minSize and maxSize are on the DeviceFormat member.
- From: David Lehman <dlehman redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [PATCH 9/9] minSize and maxSize are on the DeviceFormat member.
- Date: Sat, 28 Feb 2009 11:59:42 -0600
On Fri, 2009-02-27 at 18:26 -1000, David Cantrell wrote:
> part is a PartitionDevice, which has a member named 'format' which
> is a DeviceFormat member. The minSize and maxSize properties are
> on the DeviceFormat member.
I think what is needed is a minSize and maxSize attr on PartitionDevice
(or StorageDevice) that take into account both the limitations of the
device the partition is on and the format it contains.
> ---
> iw/autopart_type.py | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/iw/autopart_type.py b/iw/autopart_type.py
> index a316279..993e4a2 100644
> --- a/iw/autopart_type.py
> +++ b/iw/autopart_type.py
> @@ -48,8 +48,8 @@ def whichToResize(storage, intf):
> value = part.targetSize
> else:
> value = part.size
> - reqlower = part.minSize
> - requpper = part.maxSize
> + reqlower = part.format.minSize
> + requpper = part.format.maxSize
>
> adj = resizeSB.get_adjustment()
> adj.lower = reqlower
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]