[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH 09/14] doPartitioning() receives a Storage instance.
- 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 09/14] doPartitioning() receives a Storage instance.
- Date: Mon, 02 Mar 2009 10:16:22 -0600
On Sun, 2009-03-01 at 20:32 -1000, David Cantrell wrote:
> Modify this function to accept a Storage instance rather than an
> Anaconda instance.
Heh, I forgot the Storage instance has an anaconda attr. Looks good.
> ---
> storage/partitioning.py | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/storage/partitioning.py b/storage/partitioning.py
> index 17a1081..dd31b81 100644
> --- a/storage/partitioning.py
> +++ b/storage/partitioning.py
> @@ -470,7 +470,7 @@ def getBestFreeSpaceRegion(disk, part_type, req_size,
>
> return best_free
>
> -def doPartitioning(anaconda):
> +def doPartitioning(storage):
> """ Allocate and grow partitions.
>
> When this function returns without error, all PartitionDevice
> @@ -481,10 +481,10 @@ def doPartitioning(anaconda):
>
> Arguments:
>
> - anaconda -- what else?
> + storage - Main anaconda Storage instance
>
> """
> - storage = anaconda.id.storage
> + anaconda = storage.anaconda
> disks = [d for d in storage.disks if d.name in storage.clearPartDisks]
> partitions = storage.partitions
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]