diff options
author | Peter Jones <pjones@redhat.com> | 2006-08-17 21:13:11 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-08-17 21:13:11 +0000 |
commit | efbab05e3b78eb8e33091bdce00aba4fc03fd1ec (patch) | |
tree | df698108c05b98790b6c1564cebd989d83b87071 /partedUtils.py | |
parent | f9d114273c309d87f65ca833e5d94faf005efb8b (diff) | |
download | anaconda-efbab05e3b78eb8e33091bdce00aba4fc03fd1ec.tar.gz anaconda-efbab05e3b78eb8e33091bdce00aba4fc03fd1ec.tar.xz anaconda-efbab05e3b78eb8e33091bdce00aba4fc03fd1ec.zip |
- remove special casing of s390 in most device-mapper codepaths
Diffstat (limited to 'partedUtils.py')
-rw-r--r-- | partedUtils.py | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/partedUtils.py b/partedUtils.py index 345932186..1d587bce9 100644 --- a/partedUtils.py +++ b/partedUtils.py @@ -26,9 +26,8 @@ import fsset import iutil, isys import raid import rhpl -if not rhpl.getArch() in ('s390','s390x'): - import dmraid - import block +import dmraid +import block import lvm from flags import flags from partErrors import * @@ -567,8 +566,6 @@ class DiskSet: def startMPath(self): """Start all of the dm multipath devices associated with the DiskSet.""" - if rhpl.getArch() in ('s390', 's390x'): - return if not DiskSet.mpList is None: return @@ -585,15 +582,11 @@ class DiskSet: (self.driveList(),)) def renameMPath(self, mp, name): - if rhpl.getArch() in ('s390', 's390x'): - return dmraid.renameMPath(mp, name) def stopMPath(self): """Stop all of the mpath devices associated with the DiskSet.""" - if rhpl.getArch() in ('s390', 's390x'): - return if DiskSet.mpList: dmraid.stopAllMPath(DiskSet.mpList) DiskSet.mpList = None @@ -638,11 +631,12 @@ class DiskSet: testList = [] testList.extend(DiskSet.skippedDisks) + for mp in DiskSet.mpList or []: + for m in mp.members: + disk = m.split('/')[-1] + testList.append(disk) + if not rhpl.getArch() in ('s390','s390x'): - for mp in DiskSet.mpList or []: - for m in mp.members: - disk = m.split('/')[-1] - testList.append(disk) for rs in DiskSet.dmList or []: for m in rs.members: if isinstance(m, block.RaidDev): |