summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2005-12-11 23:35:33 +0000
committerPeter Jones <pjones@redhat.com>2005-12-11 23:35:33 +0000
commit5eba11d02aa3478b9208772683cef421268b6de3 (patch)
tree40f90e2c95c082c05ddbe20255f0f8cac47891b6 /partitions.py
parent4fd6f4783e75c939dfaf18ac18acaf0861ceb2c9 (diff)
downloadanaconda-5eba11d02aa3478b9208772683cef421268b6de3.tar.gz
anaconda-5eba11d02aa3478b9208772683cef421268b6de3.tar.xz
anaconda-5eba11d02aa3478b9208772683cef421268b6de3.zip
* dmraid.py (dmDriveCache): add dmDriveCache class, to to manage
our three-drive-monte with isys's hard drive list. (getRaidSetInfo): remove completely (scanForRaid): don't use getRaidSetInfo, just test the RaidSet object directly. Also log a warning when we encounter a degraded raidset. (startAllRaid): don't use a generator, since we need to provide a non-None empty result set. (stopRaidSet): simplify the code a bit. (stopAllRaids): remove traceback stuff, and remove artifacts of getRaidSetInfo * fsset.py: don't disable dmraids when rescanning partitions (LogicalVolumeDevice): rename the volume group name argument to "vgname" instead of "lvname", and add an argument for the object so we can find its physical volumes. * lvm.py (writeForceConf): take device list as an argument, and use that to write the filter rules. * partRequests.py (LogicalVolumeRequestSpec.getDevice): pass vg object in to fsset.LogicalVolumeDevice * partedUtils.py (DiskSet.startDmRaid): rewrite it to remove some unneeded code, and make it a lot simpler. (.startAllRaid): cut out a lot of crap, make the s390 handling simpler (.stopDmRaid): remove some useless stuff (.stopAllRaid): remove the s390 handling (.openDevices): check for None to see if dmraid is initialized. * partitions.py (Partitions.setFromDisk): call lvm.writeForceConf before we probe for PV/VG/LV info.
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/partitions.py b/partitions.py
index 75a2ee007..6f65ba312 100644
--- a/partitions.py
+++ b/partitions.py
@@ -190,6 +190,7 @@ class Partitions:
spec.size = spec.getActualSize(self, diskset)
self.addRequest(spec)
+ lvm.writeForceConf()
# now to read in pre-existing LVM stuff
lvm.vgscan()
lvm.vgactivate()
@@ -250,7 +251,7 @@ class Partitions:
lvm.vgdeactivate()
- diskset.stopAllRaid()
+ diskset.stopAllRaid(stopDmRaid=False)