Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora User (http://www.linux-archive.org/fedora-user/)
-   -   Fix recognition of partitions on mdraid arrays (#569462) (http://www.linux-archive.org/fedora-user/335047-fix-recognition-partitions-mdraid-arrays-569462-a.html)

Hans de Goede 03-03-2010 09:12 AM

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

David Cantrell 03-03-2010 02:55 PM

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


All times are GMT. The time now is 11:28 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.