FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 11-30-2010, 07:09 PM
David Lehman
 
Default There's no need to pass exclusiveDisks to doPartitioning separately.

We alread pass a Storage instance which includes this information.
---
pyanaconda/storage/partitioning.py | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
index c0bfd82..fb730b4 100644
--- a/pyanaconda/storage/partitioning.py
+++ b/pyanaconda/storage/partitioning.py
@@ -216,8 +216,7 @@ def doAutoPartition(anaconda):

# run the autopart function to allocate and grow partitions
try:
- doPartitioning(anaconda.storage,
- exclusiveDisks=anaconda.storage.config.exclusiveDi sks)
+ doPartitioning(anaconda.storage)

if anaconda.storage.doAutoPart:
_scheduleLVs(anaconda, devs)
@@ -804,7 +803,7 @@ def getFreeRegions(disks):

return free

-def doPartitioning(storage, exclusiveDisks=None):
+def doPartitioning(storage):
""" Allocate and grow partitions.

When this function returns without error, all PartitionDevice
@@ -817,15 +816,11 @@ def doPartitioning(storage, exclusiveDisks=None):

storage - Main anaconda Storage instance

- Keyword arguments:
-
- exclusiveDisks -- list of names of disks to use
-
"""
anaconda = storage.anaconda
disks = storage.partitioned
- if exclusiveDisks:
- disks = [d for d in disks if d.name in exclusiveDisks]
+ if storage.config.exclusiveDisks:
+ disks = [d for d in disks if d.name in storage.config.exclusiveDisks]

for disk in disks:
disk.setup()
--
1.7.3.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-01-2010, 01:50 PM
Chris Lumens
 
Default There's no need to pass exclusiveDisks to doPartitioning separately.

> We alread pass a Storage instance which includes this information.
> ---
> pyanaconda/storage/partitioning.py | 13 ++++---------
> 1 files changed, 4 insertions(+), 9 deletions(-)

ACK, obviously.

- Chris

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

Thread Tools




All times are GMT. The time now is 05:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org