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 > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-16-2011, 02:19 PM
David Cantrell
 
Default Fix "ignoredisk --only-use=___" handling (#738186)

---
partedUtils.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/partedUtils.py b/partedUtils.py
index 147c2f8..cf663c3 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -696,6 +696,7 @@ class DiskSet:
testList.append(disk)

driveList = filter(lambda x: x not in testList, self.driveList())
+ driveList = filter(lambda x: x in DiskSet.exclusiveDisks, driveList)
DiskSet.mdList.extend(raid.startAllRaid(driveList) )

def stopMdRaid(self):
--
1.7.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 09-16-2011, 03:30 PM
Chris Lumens
 
Default Fix "ignoredisk --only-use=___" handling (#738186)

> diff --git a/partedUtils.py b/partedUtils.py
> index 147c2f8..cf663c3 100644
> --- a/partedUtils.py
> +++ b/partedUtils.py
> @@ -696,6 +696,7 @@ class DiskSet:
> testList.append(disk)
>
> driveList = filter(lambda x: x not in testList, self.driveList())
> + driveList = filter(lambda x: x in DiskSet.exclusiveDisks, driveList)
> DiskSet.mdList.extend(raid.startAllRaid(driveList) )
>
> def stopMdRaid(self):

You probably want to first check that exclusiveDisks is not empty.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 09-16-2011, 05:49 PM
David Cantrell
 
Default Fix "ignoredisk --only-use=___" handling (#738186)

On 09/16/11 11:30, Chris Lumens wrote:

diff --git a/partedUtils.py b/partedUtils.py
index 147c2f8..cf663c3 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -696,6 +696,7 @@ class DiskSet:
testList.append(disk)

driveList = filter(lambda x: x not in testList, self.driveList())
+ driveList = filter(lambda x: x in DiskSet.exclusiveDisks, driveList)
DiskSet.mdList.extend(raid.startAllRaid(driveList) )

def stopMdRaid(self):


You probably want to first check that exclusiveDisks is not empty.


Whoops, right.

if DiskSet.exclusiveDisks != []:
driveList = filter(lambda x: x in DiskSet.exclusiveDisks, driveList)

--
David Cantrell <dcantrell@redhat.com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Westford, MA | EST5EDT

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 09-16-2011, 06:18 PM
Chris Lumens
 
Default Fix "ignoredisk --only-use=___" handling (#738186)

> Whoops, right.
>
> if DiskSet.exclusiveDisks != []:
> driveList = filter(lambda x: x in DiskSet.exclusiveDisks, driveList)

Yep.

- 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 07:36 AM.

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