[PATCH 5/5] Only gather lvm information one time per DeviceTree.populate call.
David Lehman
dlehman at redhat.com
Fri Mar 28 21:02:28 UTC 2014
This requires a followup patch:
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index ca5d498..ab091f5 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1317,7 +1317,8 @@ class DeviceTree(object):
if flags.installer_mode:
lv_info = devicelibs.lvm.lvs(vg_name)
else:
- lv_info = self.lvInfo
+ lv_info = dict((k, v) for (k, v) in self.lvInfo.iteritems()
+ if udev_device_get_vg_name(v) == vg_name)
self.names.extend(n for n in lv_info.keys() if n not in
self.names)
This filters the LV dict used by handleVgLVs so that it contains only
LVs in the VG we're concerned with. I am adding this into patch 5 in my
working tree.
David
More information about the anaconda-patches
mailing list