diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-07-11 00:34:36 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-07-11 00:34:36 +0000 |
commit | 1bc9f8a62ebfb9535a8d52f31bbb14a42034eb74 (patch) | |
tree | 811a7ad448a7587cf3f20d61b2807f93dbef8179 | |
parent | 1f4346c253f2c7b157e7b6e8bcb11a454d3f8958 (diff) | |
download | anaconda-1bc9f8a62ebfb9535a8d52f31bbb14a42034eb74.tar.gz anaconda-1bc9f8a62ebfb9535a8d52f31bbb14a42034eb74.tar.xz anaconda-1bc9f8a62ebfb9535a8d52f31bbb14a42034eb74.zip |
2006-07-10 Jeremy Katz <katzj@redhat.com>
* fsset.py (RAIDDevice.mdadmLine): Fix raid6 and map raid levels
sanely (#197844)
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | fsset.py | 9 |
2 files changed, 9 insertions, 3 deletions
@@ -1,5 +1,8 @@ 2006-07-10 Jeremy Katz <katzj@redhat.com> + * fsset.py (RAIDDevice.mdadmLine): Fix raid6 and map raid levels + sanely (#197844) + * anaconda (rootpath_cb): Allow relative path (markmc, #197669) 2006-07-10 David Cantrell <dcantrell@redhat.com> @@ -2120,8 +2120,11 @@ class RAIDDevice(Device): return [] def mdadmLine (self, devPrefix="/dev"): - levels = ["multipath", "hsm", "translucent", "linear", "raid0", - "raid1", "", "", "raid5", "raid5"] + levels = { 0: "raid0", + 1: "raid1", + 4: "raid5", + 5: "raid5", + 6: "raid6" } # If we can't find the device for some reason, revert to old behavior. try: @@ -2138,7 +2141,7 @@ class RAIDDevice(Device): (major, minor, uuid, level, nrDisks, totalDisks, mdMinor) = \ isys.raidsb(d) return "ARRAY %s/%s level=%s num-devices=%d uuid=%s\n" \ - %(devPrefix, self.device, levels[level+4], nrDisks, uuid) + %(devPrefix, self.device, levels[level], nrDisks, uuid) except ValueError: pass |