diff options
author | Joel Granados Moreno <jgranado@redhat.com> | 2009-03-06 18:43:05 +0100 |
---|---|---|
committer | Joel Granados Moreno <jgranado@redhat.com> | 2009-03-06 19:00:34 +0100 |
commit | f15832a4220d89c3182ea25aeb71b9ed5a44c067 (patch) | |
tree | 83818bed6f5001ac3a5ac704db68d937490f507d /storage/udev.py | |
parent | 4d0b385603d192edf86039b42ae7a9ef25620f7e (diff) | |
download | anaconda-f15832a4220d89c3182ea25aeb71b9ed5a44c067.tar.gz anaconda-f15832a4220d89c3182ea25aeb71b9ed5a44c067.tar.xz anaconda-f15832a4220d89c3182ea25aeb71b9ed5a44c067.zip |
various dmraid fixes.
1. Make a better job at detecting a dmraid member.
2. Have python raise an error when trying to set the raidSet
3. For now ignore the raid member if we can't find the set.
Diffstat (limited to 'storage/udev.py')
-rw-r--r-- | storage/udev.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/udev.py b/storage/udev.py index a39b98c81..1263823ab 100644 --- a/storage/udev.py +++ b/storage/udev.py @@ -277,9 +277,9 @@ def udev_device_is_dmraid(info): # string that describes the type of dmraid (isw_raid_member...), I don't # want to maintain a list and mdraid's ID_FS_TYPE='linux_raid_member', so # dmraid will be everything that is raid and not linux_raid_member - if info.has_key("ID_FS_USAGE") and info.has_key("ID_FS_TYPE") and \ - info["ID_FS_USAGE"] == "raid" and \ - info["ID_FS_TYPE"] != "linux_raid_member": + from formats.dmraid import DMRaidMember + if info.has_key("ID_FS_TYPE") and \ + info["ID_FS_TYPE"] in DMRaidMember._udevTypes: return True return False |