FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 05-19-2010, 11:57 AM
Hans de Goede
 
Default We no longer need to handle lvs which are part of an incomplete vg

As we no longer add lvs which are part of an incomplete vg to the
devicetree we don't need to handle this case any more in
_handleInconsistencies.
---
storage/devicetree.py | 48 ------------------------------------------------
1 files changed, 0 insertions(+), 48 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 61f1643..1d17126 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1892,54 +1892,6 @@ class DeviceTree(object):
self.addIgnoredDisk(parent.name)
lvm.lvm_cc_addFilterRejectRegexp(parent.name)

- elif device.type == "lvmlv":
- # we might have already fixed this.
- if device not in self._devices or
- device.name in self._ignoredDisks:
- return
- if device.complete:
- return
-
- paths = []
- for parent in device.vg.parents:
- paths.append(parent.path)
-
- if (self.zeroMbr or
- self.intf.questionReinitInconsistentLVM(pv_names=p aths,
- lv_name=device.name)):
-
- # destroy all lvs.
- for lv in device.vg.lvs:
- try:
- # reinitializeVG should clean up if necessary
- lv.destroy()
- except StorageError as e:
- log.info("error removing lv %s from "
- "inconsistent/incomplete vg %s"
- % (lv.lvname, device.vg.name))
- device.vg._removeLogVol(lv)
- self._removeDevice(lv)
-
- reinitializeVG(device.vg)
- else:
- # ignore all the lvs.
- for lv in device.vg.lvs:
- self._removeDevice(lv)
- lvm.lvm_cc_addFilterRejectRegexp(lv.name)
- # ignore the vg
- self._removeDevice(device.vg)
- lvm.lvm_cc_addFilterRejectRegexp(device.vg.name)
- lvm.blacklistVG(device.vg.name)
- # ignore all the pvs
- for parent in device.vg.parents:
- if parent.type == "partition":
- parent.immutable =
- _("This partition is part of an inconsistent LVM Volume Group.")
- else:
- self._removeDevice(parent, moddisk=False)
- self.addIgnoredDisk(parent.name)
- lvm.lvm_cc_addFilterRejectRegexp(parent.name)
-
# Address the inconsistencies present in the tree leaves.
for leaf in self.leaves:
leafInconsistencies(leaf)
--
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 02:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org