summaryrefslogtreecommitdiffstats
path: root/partitioning.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-08-09 21:24:11 +0000
committerMatt Wilson <msw@redhat.com>2001-08-09 21:24:11 +0000
commit060cfcbcb4878b36d08a6f7a95493505f71e62c2 (patch)
treebc73ef510b0e5bce373cc67ce25f8e67eb4762b7 /partitioning.py
parent1f76a85d750986a5e4de624acfc2962ced162785 (diff)
downloadanaconda-060cfcbcb4878b36d08a6f7a95493505f71e62c2.tar.gz
anaconda-060cfcbcb4878b36d08a6f7a95493505f71e62c2.tar.xz
anaconda-060cfcbcb4878b36d08a6f7a95493505f71e62c2.zip
handle exceptions caused by a bad mountpoint (#50319)
fixed broken raid registration from the last commit
Diffstat (limited to 'partitioning.py')
-rw-r--r--partitioning.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/partitioning.py b/partitioning.py
index 730fd9805..c1a83e511 100644
--- a/partitioning.py
+++ b/partitioning.py
@@ -213,11 +213,15 @@ def get_raid_devices(requests):
return raidRequests
-def register_raid_device(mdname, devices, level, numActive):
+def register_raid_device(mdname, newdevices, newlevel, newnumActive):
for dev, devices, level, numActive in DiskSet.mdList:
if mdname == dev:
- raise ValueError, "%s is already in the mdList!" % (mdname,)
- DiskSet.mdList.append((mdname, devices, level, numActive))
+ if (devices != newdevices or level != newlevel or
+ numActive != newnumActive):
+ raise ValueError, "%s is already in the mdList!" % (mdname,)
+ else:
+ return
+ DiskSet.mdList.append((mdname, newdevices[:], newlevel, newnumActive))
def lookup_raid_device(mdname):
for dev, devices, level, numActive in DiskSet.mdList: