[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
PATCH: do not run multipath stuff when not nescessary
- From: Hans de Goede <hdegoede redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: PATCH: do not run multipath stuff when not nescessary
- Date: Tue, 03 Feb 2009 09:44:18 +0100
Hi,
While working on dmraid I noticed that the multipath stuff gets run when it
shouldn't, this is because the test changed in the patch below assumes that not
has a lower precedence then and, which it has not, so the not only applies to
one part of the and, making the test wrong.
diff --git a/partedUtils.py b/partedUtils.py
index 2fc553c..cf18324 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -584,7 +584,7 @@ class DiskSet:
def startMPath(self):
"""Start all of the dm multipath devices associated with the DiskSet."""
- if not DiskSet.mpList is None and DiskSet.mpList.__len__() > 0:
+ if DiskSet.mpList is None or DiskSet.mpList.__len__() == 0:
return
log.debug("starting mpaths")
Regards,
Hans
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]