FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux User Repository

LinkBack Thread Tools
Old 06-10-2010, 06:35 PM
Hans de Goede
Default Add md arrays to the devicetree with a md# name rather then md/# (#591970)

When an mdraid array with newer metadata versions is created with a name
of md#, like we do, the name returned from devicelibs.mdraid.examine
is in the form of md/#. However if we use that as device name in the
devicetree, then later on when we scan the mdraid array after it was
brought up by handleUdevMDMemberFormat, we will find a md# device as
that is the sysfs name, think it is a different device and add the
device to the tree a second time, this patch fixes this.
pyanaconda/storage/devicetree.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 67c8f65..ef53db4 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -1621,6 +1621,7 @@ class DeviceTree(object):
# md_name can be either md# or md/#
if md_name.startswith("md/"):
minor = int(md_name[3:]) # strip off leading "md/"
+ md_name = "md%d" % minor # use a regular md# name
minor = int(md_name[2:]) # strip off leading "md"
except (IndexError, ValueError):

Anaconda-devel-list mailing list

Thread Tools

All times are GMT. The time now is 11:11 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org