I still don't get this one, you wrote in response to my previous question: name=/dev/md/imsm0 self.path=/dev/imsm Mdadm 3.0 allows to create files with specific name in /dev/md not in /dev First of all I assume that both lines should have imsm0 ? Also not that: "/dev/imsm".split("/")[2] Will not get you "imsm" but an array out of bounds exception. What you want then is: "/dev/imsm".split("/")[1] But if the imsm device node lives under /dev/md, then the path property should be changed to properly return this for the imsm representing device. Regards, Hans On 04/08/2009 03:17 PM, Jacek Danecki wrote:
Change name of the array diff --git a/storage/devices.py b/storage/devices.py index fa9bd3f..fb36daa 100644 --- a/storage/devices.py +++ b/storage/devices.py @@ -3,6 +3,9 @@ # # Copyright (C) 2009 Red Hat, Inc. # +# Copyright (C) 2009 Intel Corporation +# April 2009 - Changes for MD support for isw format +# # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. @@ -2072,9 +2075,13 @@ class MDRaidArrayDevice(StorageDevice): if self.exists and self.uuid: # this is a hack to work around mdadm's insistence on giving # really high minors to arrays it has no config entry for + if self.level == "container": + name = "/dev/md/%s" % self.path.split("/")[2] + else: + name = self.path open("/etc/mdadm.conf", "a").write("ARRAY %s UUID=%s\n" - % (self.path, self.uuid)) - + % (name, self.uuid)) + @property def size(self): size = None _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list
_______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list