If array was created before this patch disallow to create new MDRaidArrayDevice object. It make an assumption that array for md member is created by function handleUdevMDMeberFormat. Maybe we can drop function addUdevMDDevice?
commit ca45ead2945d232cbbaa207fae2c220262f3acc5 Author: Jacek Danecki <Jacek.Danecki@xxxxxxxxx> Date: Fri Apr 10 13:45:41 2009 -0400 Don't create array if already exists diff --git a/storage/devicetree.py b/storage/devicetree.py index 6247042..15713d9 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -998,6 +998,15 @@ class DeviceTree(object): except (KeyError, IndexError, ValueError) as e: log.warning("invalid data for %s: %s" % (name, e)) return + + if md_uuid: + md_array = self.getDeviceByUuid(md_uuid) + if md_array: + log.debug("MD array md_uuid=%s already created" % (md_uuid)) + return md_array + + if self.md_is_container(md_level): + return device device = MDRaidArrayDevice(name, level=md_level,
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list