[PATCH 6/6] Clear md arrays' sysfs path after deactivating them. (#954062)
David Lehman
dlehman at redhat.com
Wed May 29 15:46:19 UTC 2013
Without an mdadm.conf to refer to, mdadm makes no effort to associate
minors with specific arrays.
---
blivet/devices.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/blivet/devices.py b/blivet/devices.py
index 2bb7289..1587b91 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -3094,6 +3094,13 @@ class MDRaidArrayDevice(StorageDevice):
members=disks,
uuid=self.uuid)
+ def _postTeardown(self, recursive=False):
+ super(MDRaidArrayDevice, self)._postTeardown(recursive=recursive)
+ # mdadm reuses minors indiscriminantly when there is no mdadm.conf, so
+ # we need to clear the sysfs path now so our status method continues to
+ # give valid results
+ self.updateSysfsPath()
+
def teardown(self, recursive=None):
""" Close, or tear down, a device. """
log_method_call(self, self.name, status=self.status,
--
1.8.1.4
More information about the anaconda-patches
mailing list