Re: [PATCH 9/9] minSize and maxSize are on the DeviceFormat member.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux