[PATCH] Multipath, fwraid members need not be in exclusiveDisks. (#1032919)
David Lehman
dlehman at redhat.com
Thu Jan 16 21:41:32 UTC 2014
This, combined with commit 07bcfa413f5e4d1fdb8ebcb9ac98834da29f0df2,
means you can specify a multipath by identifying the multipath itself,
all of its members, or both.
---
blivet/devicetree.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 4997515..45a7f27 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1084,6 +1084,15 @@ class DeviceTree(object):
for parent in device.parents:
parent.protected = True
+ # If we just added a multipath or fwraid disk that is in exclusiveDisks
+ # we have to make sure all of its members are in the list too.
+ mdclasses = (DMRaidArrayDevice, MDRaidArrayDevice, MultipathDevice)
+ if device.isDisk and isinstance(device, mdclasses):
+ if device.name in self.exclusiveDisks:
+ for parent in device.parents:
+ if parent.name not in self.exclusiveDisks:
+ self.exclusiveDisks.append(parent.name)
+
# Don't try to do format handling on drives without media or
# if we didn't end up with a device somehow.
if not device or not device.mediaPresent:
--
1.8.1.4
More information about the anaconda-patches
mailing list