[PATCH] When considering whether anything can be shrunk, throw out protected devs.
Samantha N. Bueno
sbueno+anaconda at redhat.com
Wed Dec 5 20:52:42 UTC 2012
On Wed, Dec 05, 2012 at 01:30:05PM -0500, Chris Lumens wrote:
> ---
> pyanaconda/ui/gui/spokes/lib/resize.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/pyanaconda/ui/gui/spokes/lib/resize.py b/pyanaconda/ui/gui/spokes/lib/resize.py
> index dcc8527..b500c97 100644
> --- a/pyanaconda/ui/gui/spokes/lib/resize.py
> +++ b/pyanaconda/ui/gui/spokes/lib/resize.py
> @@ -142,7 +142,8 @@ class ResizeDialog(GUIObject):
> # Devices that are not resizable are still deletable.
> if dev.resizable:
> freeSize = dev.size - dev.minSize
> - canShrinkSomething = True
> + if not dev.protected:
> + canShrinkSomething = True
> else:
> freeSize = dev.size
>
> --
Looks good to me.
Samantha
More information about the anaconda-patches
mailing list