[PATCH 3/4] Add ability to manipulate container sizes directly.

Vratislav Podzimek vpodzime at redhat.com
Fri May 3 09:41:49 UTC 2013


On Thu, 2013-05-02 at 13:00 -0500, David Lehman wrote:
> There are three policies to choose from:
> 
>  - "Automatic" (the current/f18 behavior), maintains the container
>    size so that it is always just large enough to hold the devices it
>    contains.
>  - "As large as possible" grows the container as large as is possible
>    regardless of the sizes of the devices it contains.
>  - "Fixed" sets the size of the container as close as possible to the
>    specified value. Specification of the fixed size is the same as for
>    the other size entries in the custom spoke.
> ---
>  anaconda.spec.in                      |   2 +-
>  pyanaconda/ui/gui/spokes/custom.glade |  55 ++++++++++++++
>  pyanaconda/ui/gui/spokes/custom.py    | 138 +++++++++++++++++++++++++++++-----
>  3 files changed, 174 insertions(+), 21 deletions(-)

> diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
> index 27fa286..159f7bb 100644
> --- a/pyanaconda/ui/gui/spokes/custom.py
> +++ b/pyanaconda/ui/gui/spokes/custom.py
> @@ -49,6 +49,8 @@ from blivet.devicefactory import DEVICE_TYPE_PARTITION
>  from blivet.devicefactory import DEVICE_TYPE_MD
>  from blivet.devicefactory import DEVICE_TYPE_DISK
>  from blivet.devicefactory import get_raid_level
> +from blivet.devicefactory import SIZE_POLICY_AUTO
> +from blivet.devicefactory import SIZE_POLICY_MAX
I think these two imports could go on a single line (and the DEVICE_*
above as well).

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list