Re: [PATCH] Use incremental mode for all md member addition during probing.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Looks ok,

Regards,

Hans


On 04/21/2009 01:17 AM, David Lehman wrote:
mdadm's assemble and incremental modes for assembling existing arrays
are mutually exclusive. According to dledford, we must use one or the
other -- not a mixture. We will use incremental assembly during device
tree population and then use the assemble command to activate the arrays
once they are fully defined.
---
  storage/devicetree.py |    9 ++-------
  1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index c52184d..13dd0fb 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1328,13 +1328,8 @@ class DeviceTree(object):
                                           memberDevices=md_devices,
                                           uuid=md_uuid,
                                           sysfsPath=sysfs_path,
-                                         exists=True,
-                                         parents=[device])
-            try:
-                md_array.setup()
-            except (DeviceError, MDRaidError) as e:
-                log.info("setup of md array %s failed: %s"
-                            % (md_array.name, e))
+                                         exists=True)
+            md_array._addDevice(device)
              self._addDevice(md_array)

      def handleUdevDMRaidMemberFormat(self, info, device):

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux