diff options
author | Mike Fulbright <msf@redhat.com> | 2001-06-21 18:49:20 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-06-21 18:49:20 +0000 |
commit | 7943ab885573ec66e3d5fb85ca2b2b3b09e50d6d (patch) | |
tree | 0813ff2c36ddb56cf3a81f2fe71c7593d913893f /partitioning.py | |
parent | b0598464adb7a4b687100036d6305323df3c7471 (diff) | |
download | anaconda-7943ab885573ec66e3d5fb85ca2b2b3b09e50d6d.tar.gz anaconda-7943ab885573ec66e3d5fb85ca2b2b3b09e50d6d.tar.xz anaconda-7943ab885573ec66e3d5fb85ca2b2b3b09e50d6d.zip |
function to tell if request is a member of a raid array
Diffstat (limited to 'partitioning.py')
-rw-r--r-- | partitioning.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/partitioning.py b/partitioning.py index 650e281ce..d7180cce6 100644 --- a/partitioning.py +++ b/partitioning.py @@ -518,6 +518,18 @@ class PartitionRequests: return retval + def isRaidMember(self, request): + raiddev = self.getRaidRequests() + if not raiddev or not request.device: + return 0 + for dev in raiddev: + if not dev.raidmembers: + continue + for member in dev.raidmembers: + if request.device == get_partition_name(member.partition): + return 1 + return 0 + # return name of boot mount point in current requests def getBootableRequest(self): bootreq = self.getRequestByMountPoint("/boot") |