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 > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 03-03-2010, 09:12 AM
Hans de Goede
 
Default Fix recognition of partitions on mdraid arrays (#569462)

Currently anaconda mis-identifies partitions on mdraid arrays as
being mdraid arrays themselves, causing a backtrace. This patch
fixes this.
---
storage/udev.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/udev.py b/storage/udev.py
index 02a54e7..5faafa3 100644
--- a/storage/udev.py
+++ b/storage/udev.py
@@ -151,6 +151,9 @@ def udev_device_is_dm(info):

def udev_device_is_md(info):
""" Return True if the device is a mdraid array device. """
+ # Don't identify partitions on mdraid arrays as raid arrays
+ if udev_device_is_partition(info):
+ return False
# isw raid set *members* have MD_METADATA set, but are not arrays!
return info.has_key("MD_METADATA") and
info.get("ID_FS_TYPE") != "isw_raid_member"
--
1.7.0

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-03-2010, 02:55 PM
David Cantrell
 
Default Fix recognition of partitions on mdraid arrays (#569462)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 3 Mar 2010, Hans de Goede wrote:


Currently anaconda mis-identifies partitions on mdraid arrays as
being mdraid arrays themselves, causing a backtrace. This patch
fixes this.
---
storage/udev.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/udev.py b/storage/udev.py
index 02a54e7..5faafa3 100644
--- a/storage/udev.py
+++ b/storage/udev.py
@@ -151,6 +151,9 @@ def udev_device_is_dm(info):

def udev_device_is_md(info):
""" Return True if the device is a mdraid array device. """
+ # Don't identify partitions on mdraid arrays as raid arrays
+ if udev_device_is_partition(info):
+ return False
# isw raid set *members* have MD_METADATA set, but are not arrays!
return info.has_key("MD_METADATA") and
info.get("ID_FS_TYPE") != "isw_raid_member"



Ack for rhel6-branch. Hold off on master until after F-13 alpha is good to
go.

- --
David Cantrell <dcantrell@redhat.com>

Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkuOhnYACgkQ5hsjjIy1Vkl7lwCbBjOZJl31+v 8LbxpUWJCRxpCi
BJcAn1wzr543ny8G31qZB/aUAvLZ2PaK
=SfaS
-----END PGP SIGNATURE-----

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

Thread Tools




All times are GMT. The time now is 04:51 PM.

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