[PATCH] Enforce upper bound for resize. (#1027947)

Chris Lumens clumens at redhat.com
Tue Nov 12 17:43:59 UTC 2013


> diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
> index 94c4416..1950a5b 100644
> --- a/pyanaconda/ui/gui/spokes/custom.py
> +++ b/pyanaconda/ui/gui/spokes/custom.py
> @@ -1443,6 +1443,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
>                  size = device.maxSize
>              elif size < device.minSize:
>                  size = device.minSize
> +            elif size > device.maxSize:
> +                size = device.maxSize
>  
>              # And then we need to re-check that the max size is actually
>              # different from the current size.

Agreed.

- Chris


More information about the anaconda-patches mailing list